Class KeyIdentifier

java.lang.Object
org.mozilla.jss.netscape.security.x509.KeyIdentifier
All Implemented Interfaces:
Serializable

public class KeyIdentifier extends Object implements Serializable
Represent the Key Identifier ASN.1 object.
Version:
1.4
See Also:
  • 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

      public KeyIdentifier(DerValue val) throws IOException
      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

      public String toString()
      Returns a printable representation of the KeyUsage.
      Overrides:
      toString in class Object
    • encode

      void encode(DerOutputStream out) throws IOException
      Write the KeyIdentifier to the DerOutputStream.
      Parameters:
      out - the DerOutputStream to write the object to.
      Throws:
      IOException