| |
|
| java.lang.Object java.security.spec.EncodedKeySpec
All known Subclasses: java.security.spec.PKCS8EncodedKeySpec, java.security.spec.X509EncodedKeySpec,
Constructor Summary | |
public | EncodedKeySpec(byte[] encodedKey) Creates a new EncodedKeySpec with the given encoded key.
Parameters: encodedKey - the encoded key. |
Method Summary | |
public byte[] | getEncoded() Returns the encoded key.
the encoded key. | abstract public String | getFormat() Returns the name of the encoding format associated with this
key specification. |
EncodedKeySpec | public EncodedKeySpec(byte[] encodedKey)(Code) | | Creates a new EncodedKeySpec with the given encoded key.
Parameters: encodedKey - the encoded key. The contents of the array are copied to protect against subsequent modification. exception: NullPointerException - if encodedKey is null. |
getEncoded | public byte[] getEncoded()(Code) | | Returns the encoded key.
the encoded key. Returns a new array each timethis method is called. |
getFormat | abstract public String getFormat()(Code) | | Returns the name of the encoding format associated with this
key specification.
If the opaque representation of a key
(see
java.security.Key Key ) can be transformed
(see
java.security.KeyFactory KeyFactory )
into this key specification (or a subclass of it),
getFormat called
on the opaque key returns the same value as the
getFormat method
of this key specification.
a string representation of the encoding format. |
|
|
|