The RFC 6960 defines a ResponderID structure as:
ResponderID ::= CHOICE {
byName [1] Name,
byKey [2] KeyHash }
KeyHash ::= OCTET STRING -- SHA-1 hash of responder's public key
(excluding the tag and length fields)
Name is defined in RFC 5280.
ResponderId.Type
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ResponderId.
A |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private KeyIdentifier | |
| private X500Principal | |
| private final ResponderId. |
| Access | Constructor and Description |
|---|---|
| public | ResponderId(X500Principal
the subject name of the certificate used
to sign OCSP responses. subjectName)Constructs a |
| public | ResponderId(PublicKey
the OCSP responder's public key pubKey)Constructs a |
| public | ResponderId(byte[]
the DER-encoded bytes encodedData)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the specified object is equal to thisResponderIdthe object to be compared against obj)Overrides java. Compares the specified object with this |
| public byte[] | Returns: a byte array containing the DER-encoded representation for thisResponderIdEncode a |
| public KeyIdentifier | Returns: theKeyIdentifier for this ResponderId if it
is a BY_KEY variant. If the ResponderId is a BY_NAME
variant, this routine will return null.Obtain the underlying key identifier from a |
| public X500Principal | Returns: theX500Principal for this ResponderId if it
is a BY_NAME variant. If the ResponderId is a BY_KEY
variant, this routine will return null.Obtain the underlying |
| public ResponderId. | Returns: a number corresponding to the context-specific tag number used in the DER-encoding for aResponderIdReturn the type of |
| public int | Returns: the hash code value for thisResponderIdOverrides java. Returns the hash code value for this |
| private byte[] | Returns: the DER encoding for a responder ID byKey option, including explicit context-specific tagging.Convert the responderKeyId data member into its DER-encoded form |
| public int | Returns: the length of the encodedResponderIdGet the length of the encoded |
| private byte[] | Returns: the DER encoding for a responder ID byName option, including explicit context-specific tagging.Convert the responderName data member into its DER-encoded form |
| public String | Returns: a String representation of thisResponderIdOverrides java. Create a String representation of this |
| encodedRid | back to summary |
|---|---|
| private final byte[] encodedRid | |
| responderKeyId | back to summary |
|---|---|
| private KeyIdentifier responderKeyId | |
| responderName | back to summary |
|---|---|
| private X500Principal responderName | |
| type | back to summary |
|---|---|
| private final ResponderId. | |
| ResponderId | back to summary |
|---|---|
| public ResponderId(X500Principal subjectName) throws IOException Constructs a
| |
| ResponderId | back to summary |
|---|---|
| public ResponderId(PublicKey pubKey) throws IOException Constructs a
| |
| ResponderId | back to summary |
|---|---|
| public ResponderId(byte[] encodedData) throws IOException Constructs a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares the specified object with this | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Encode a
| |
| getKeyIdentifier | back to summary |
|---|---|
| public KeyIdentifier getKeyIdentifier() Obtain the underlying key identifier from a
| |
| getResponderName | back to summary |
|---|---|
| public X500Principal getResponderName() Obtain the underlying
| |
| getType | back to summary |
|---|---|
| public ResponderId. Return the type of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this
| |
| keyIdToBytes | back to summary |
|---|---|
| private byte[] keyIdToBytes() throws IOException Convert the responderKeyId data member into its DER-encoded form
| |
| length | back to summary |
|---|---|
| public int length() Get the length of the encoded
| |
| principalToBytes | back to summary |
|---|---|
| private byte[] principalToBytes() throws IOException Convert the responderName data member into its DER-encoded form
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Create a String representation of this | |
ResponderId enumeration describing the accepted forms for a
ResponderId.
ResponderId
| Modifier and Type | Field and Description |
|---|---|
| public static final ResponderId. | BY_KEY
A BY_KEY |
| public static final ResponderId. | BY_NAME
A BY_NAME |
| private final String | |
| private final int |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public int | |
| public static ResponderId. | |
| public static ResponderId. |
| BY_KEY | back to summary |
|---|---|
| public static final ResponderId. A BY_KEY | |
| BY_NAME | back to summary |
|---|---|
| public static final ResponderId. A BY_NAME | |
| ridTypeName | back to summary |
|---|---|
| private final String ridTypeName | |
| tagNumber | back to summary |
|---|---|
| private final int tagNumber | |
| Type | back to summary |
|---|---|
| private Type(int value, String name) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.
| |
| value | back to summary |
|---|---|
| public int value() | |
| valueOf | back to summary |
|---|---|
| public static ResponderId. | |
| values | back to summary |
|---|---|
| public static ResponderId. | |