java.security
public interface Key extends Serializable
Serializable, all
 keys may be serialized. Keys are generally obtained through key generators,
 including {@link KeyFactory}.
Since: 1.1
See Also: PublicKey PrivateKey KeyPair KeyPairGenerator KeyFactory KeySpec Identity Signer
UNKNOWN: updated to 1.4
| Field Summary | |
|---|---|
| long | serialVersionUID 
 The version identifier used for serialization.  | 
| Method Summary | |
|---|---|
| String | getAlgorithm() 
 This method returns the name of the algorithm for this key.    | 
| byte[] | getEncoded() 
 This method returns the encoded form of the key.    | 
| String | getFormat() 
 This method returns the name of the encoding format for this key.    | 
String such as "RSA".
Returns: the name of the algorithm in use
null.
Returns: the encoded form of the key, or null
null if this key
 does not have an encoding format.
Returns: the name of the encoding format for this key, or null