java.security.spec
Class EncodedKeySpec
java.lang.Object
|
+--java.security.spec.EncodedKeySpec
All Implemented Interfaces:
KeySpec
public abstract class
EncodedKeySpecextends
Objectimplements
KeySpecEncoded Key Specification class which is used to store
byte encoded keys.
Since:Author:EncodedKeySpec
public EncodedKeySpec(byte[] encodedKey)
Constructs a new EncodedKeySpec with the specified encoded key.
Parameters:
getEncoded
public byte[] getEncoded()
Gets the encoded key in byte format.
getFormat
public String getFormat()
Returns the name of the key format used.
This name is the format such as "PKCS#8" or "X.509" which
if it matches a Key class name of the same type can be
transformed using the apporiate KeyFactory.
Returns:
- a string representing the name