| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | KeyIdentifier(byte[]
the octet string identifying the key identifier. octetString)Create a KeyIdentifier with the passed bit settings. |
| public | |
| public | KeyIdentifier(PublicKey
the public key from which to construct this KeyIdentifier pubKey)Creates a KeyIdentifier from a public-key value. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | encode(DerOutputStream
the DerOutputStream to write the object to. out)Write the KeyIdentifier to the DerOutputStream. |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public byte[] | |
| public int | |
| public String |
| octetString | back to summary |
|---|---|
| private final byte[] octetString | |
| KeyIdentifier | back to summary |
|---|---|
| public KeyIdentifier(byte[] octetString) Create a KeyIdentifier with the passed bit settings.
| |
| KeyIdentifier | back to summary |
|---|---|
| public KeyIdentifier(DerValue val) throws IOException Create a KeyIdentifier from the DER encoded value.
| |
| KeyIdentifier | back to summary |
|---|---|
| public KeyIdentifier(PublicKey pubKey) throws IOException Creates a KeyIdentifier from a public-key value. From RFC 5280: Two common methods for generating key identifiers from the public key are:
This method supports method 1.
| |
| encode | back to summary |
|---|---|
| pack-priv void encode(DerOutputStream out) Write the KeyIdentifier to the DerOutputStream.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one.
| |
| getIdentifier | back to summary |
|---|---|
| public byte[] getIdentifier() Return the value of the KeyIdentifier as byte array. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for this object. Objects that are equal will also have the same hashcode.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a printable representation of the KeyUsage. | |