SubjectPublicKeyInfo
.
The SubjectPublicKeyInfo
syntax is defined in the X.509
standard as follows:
SubjectPublicKeyInfo ::= SEQUENCE { algorithm AlgorithmIdentifier, subjectPublicKey BIT STRING }
java.security.Key
, java.security.KeyFactory
, KeySpec
, EncodedKeySpec
, PKCS8EncodedKeySpec
Access | Constructor and Description |
---|---|
public | X509EncodedKeySpec(byte[]
the key, which is assumed to be
encoded according to the X.509 standard. The contents of the
array are copied to protect against subsequent modification. encodedKey)Creates a new |
public | X509EncodedKeySpec(byte[]
the key, which is assumed to be
encoded according to the X.509 standard. The contents of the
array are copied to protect against subsequent modification. encodedKey, String the algorithm name of the encoded public key
See the KeyFactory section in the
Java Security Standard Algorithm Names Specification
for information about standard algorithm names. algorithm)Creates a new |
Modifier and Type | Method and Description |
---|---|
public byte[] | Returns: the X.509 encoding of the key. Returns a new array each time this method is called.Overrides java. Returns the key bytes, encoded according to the X.509 standard. |
public final String | Returns: the string"X.509" .Implements abstract java. Returns the name of the encoding format associated with this key specification. |
X509EncodedKeySpec | back to summary |
---|---|
public X509EncodedKeySpec(byte[] encodedKey) Creates a new
|
X509EncodedKeySpec | back to summary |
---|---|
public X509EncodedKeySpec(byte[] encodedKey, String algorithm) Creates a new
|
getEncoded | back to summary |
---|---|
public byte[] getEncoded() Overrides java. Returns the key bytes, encoded according to the X.509 standard.
|
getFormat | back to summary |
---|---|
public final String getFormat() Implements abstract java. Returns the name of the encoding format associated with this key specification.
|