public class KeyIdentifier
extends java.lang.Object
| Constructor and Description |
|---|
KeyIdentifier(byte[] octetString)
Create a KeyIdentifier with the passed bit settings.
|
KeyIdentifier(com.tencent.kona.sun.security.util.DerValue val)
Create a KeyIdentifier from the DER encoded value.
|
KeyIdentifier(java.security.PublicKey pubKey)
Creates a KeyIdentifier from a public-key value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one.
|
byte[] |
getIdentifier()
Return the value of the KeyIdentifier as byte array.
|
int |
hashCode()
Returns a hash code value for this object.
|
java.lang.String |
toString()
Returns a printable representation of the KeyUsage.
|
public KeyIdentifier(byte[] octetString)
octetString - the octet string identifying the key identifier.public KeyIdentifier(com.tencent.kona.sun.security.util.DerValue val)
throws java.io.IOException
val - the DerValuejava.io.IOExceptionpublic KeyIdentifier(java.security.PublicKey pubKey)
throws java.io.IOException
From RFC 5280: Two common methods for generating key identifiers from the public key are:
This method supports method 1.
pubKey - the public key from which to construct this KeyIdentifierjava.io.IOException - on parsing errorspublic byte[] getIdentifier()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object