Class PrivateKeyCallback.SubjectKeyIDRequest

java.lang.Object
jakarta.security.auth.message.callback.PrivateKeyCallback.SubjectKeyIDRequest
All Implemented Interfaces:
PrivateKeyCallback.Request
Enclosing class:
PrivateKeyCallback

public static class PrivateKeyCallback.SubjectKeyIDRequest extends Object implements PrivateKeyCallback.Request
Request type for private keys that are identified using a SubjectKeyID
  • Constructor Details

    • SubjectKeyIDRequest

      public SubjectKeyIDRequest(byte[] subjectKeyID)
      Construct a SubjectKeyIDRequest with an subjectKeyID.

      The subjectKeyID is used to directly identify the private key to be returned. The corresponding certificate chain for the private key is also returned.

      If the subjectKeyID is null, the handler of the callback relies on its own default.

      Parameters:
      subjectKeyID - Identifier for the private key, or null.
  • Method Details

    • getSubjectKeyID

      public byte[] getSubjectKeyID()
      Get the subjectKeyID.
      Returns:
      The subjectKeyID, or null.