Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4856969

Specify that ProviderException should be used for internal Provider errors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.2.1, 1.3.0_01, 5.0
    • security-libs
    • tiger
    • generic, x86
    • generic, solaris_10, windows_2000

      In JCA/JCE providers that are implemented on top of hardware token, any communication with that token may result in an error. For example, imagine a Smartcard based provider using a card that is physically removed from the reader in the middle of an operation. Or assume we want to store a key on the token, but there is insufficient memory, for example due to other threads concurrently creating objects.

      The JCA/JCE APIs currently do not specify how to handle this situation. We plan to amend the specification of Provider to state that ProviderException (or a subclass) should be used for this purpose (ProviderException is an existing subclass of RuntimeException). Also, update the specification of ProviderException to explicitly mention internal errors.

      This work is part of Tiger TOO 4635083.

            andreas Andreas Sterbenz
            andreas Andreas Sterbenz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: