|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.security.x509.KeyIdentifier
public class KeyIdentifier
Represent the Key Identifier ASN.1 object.
| Constructor Summary | |
|---|---|
KeyIdentifier(byte[] octetString)
Create a KeyIdentifier with the passed bit settings. |
|
KeyIdentifier(DerValue val)
Create a KeyIdentifier from the DER encoded value. |
|
KeyIdentifier(PublicKey pubKey)
Creates a KeyIdentifier from a public-key value. |
|
| Method Summary | |
|---|---|
boolean |
equals(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. |
String |
toString()
Returns a printable representation of the KeyUsage. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyIdentifier(byte[] octetString)
octetString - the octet string identifying the key identifier.
public KeyIdentifier(DerValue val)
throws IOException
val - the DerValue
IOException
public KeyIdentifier(PublicKey pubKey)
throws IOException
From RFC2459: 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 KeyIdentifier
IOException - on parsing errors| Method Detail |
|---|
public byte[] getIdentifier()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
Hashtablepublic boolean equals(Object other)
equals in class Objectother - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.Object.hashCode(),
Hashtable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||