java.security.spec

Class X509EncodedKeySpec

public class X509EncodedKeySpec extends EncodedKeySpec

X.509 Encoded Key Specification class which is used to store "X.509" byte encoded keys.

Since: JDK 1.2

Constructor Summary
X509EncodedKeySpec(byte[] encodedKey)
Constructs a new X509EncodedKeySpec with the specified encoded key.
Method Summary
byte[]getEncoded()
Gets the encoded key in byte format.
StringgetFormat()
Returns the name of the key format used which is "X.509"

Constructor Detail

X509EncodedKeySpec

public X509EncodedKeySpec(byte[] encodedKey)
Constructs a new X509EncodedKeySpec with the specified encoded key.

Parameters: encodedKey A key to store, assumed to be "X.509"

Method Detail

getEncoded

public byte[] getEncoded()
Gets the encoded key in byte format.

UNKNOWN: the encoded key

getFormat

public final String getFormat()
Returns the name of the key format used which is "X.509"

Returns: a string representing the name