Class KeyIdentifier
java.lang.Object
org.mozilla.jss.netscape.security.x509.KeyIdentifier
- All Implemented Interfaces:
Serializable
Represent the Key Identifier ASN.1 object.
- Version:
- 1.4
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionKeyIdentifier
(byte[] octetString) Create a KeyIdentifier with the passed bit settings.KeyIdentifier
(DerValue val) Create a KeyIdentifier from the DER encoded value. -
Method Summary
Modifier and TypeMethodDescription(package private) void
encode
(DerOutputStream out) Write the KeyIdentifier to the DerOutputStream.byte[]
Return the value of the KeyIdentifier as byte array.toString()
Returns a printable representation of the KeyUsage.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
octetString
private byte[] octetString
-
-
Constructor Details
-
KeyIdentifier
public KeyIdentifier(byte[] octetString) Create a KeyIdentifier with the passed bit settings.- Parameters:
octetString
- the octet string identifying the key identifier.
-
KeyIdentifier
Create a KeyIdentifier from the DER encoded value.- Parameters:
val
- the DerValue- Throws:
IOException
-
-
Method Details
-
getIdentifier
public byte[] getIdentifier()Return the value of the KeyIdentifier as byte array. -
toString
Returns a printable representation of the KeyUsage. -
encode
Write the KeyIdentifier to the DerOutputStream.- Parameters:
out
- the DerOutputStream to write the object to.- Throws:
IOException
-