| Creates a KeyIdentifier from a public-key value.
From RFC2459: Two common methods for generating key identifiers from
the public key are:
- 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).
- 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.
This method supports method 1.
Parameters: pubKey - the public key from which to construct this KeyIdentifier throws: IOException - on parsing errors |