KeyIdentifier.this

Creates a KeyIdentifier from a public-key value.

<p>From RFC2459: Two common methods for generating key identifiers from the key are: <ol> <li>The keyIdentifier is composed of the 160-bit SHA-1 hash of the value of the BIT STRING subjectPublicKey (excluding the tag, length, and number of unused bits). <p> <li>The keyIdentifier is composed of a four bit type field with the value 0100 followed by the least significant 60 bits of the SHA-1 hash of the value of the BIT STRING subjectPublicKey. </ol> <p>This method supports method 1.

@param pubKey the key from which to construct this KeyIdentifier @throws IOException on parsing errors

  1. this(byte[] octetString)
  2. this(DerValue val)
  3. this(PublicKey pubKey)
    class KeyIdentifier

Meta