javax.security.auth.message.callback

## Class PrivateKeyCallback.SubjectKeyIDRequest

- java.lang.Object
- - javax.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 Summary

    Constructors
    Constructor and Description
    `PrivateKeyCallback.SubjectKeyIDRequest(byte[] subjectKeyID)` Construct a SubjectKeyIDRequest with an subjectKeyID.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getSubjectKeyID()` Get the subjectKeyID.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PrivateKeyCallback.SubjectKeyIDRequest

          public PrivateKeyCallback.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 Detail

    - #### getSubjectKeyID

          public byte[] getSubjectKeyID()

      Get the subjectKeyID.
      Returns:
        The subjectKeyID, or null.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.