public interface Key extends java.io.Serializable
Serializable, all
keys may be serialized. Keys are generally obtained through key generators,
including KeyFactory.PublicKey,
PrivateKey,
KeyPair,
KeyPairGenerator,
KeyFactory,
KeySpec,
Identity,
Signer| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
The version identifier used for serialization.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
This method returns the name of the algorithm for this key.
|
byte[] |
getEncoded()
This method returns the encoded form of the key.
|
java.lang.String |
getFormat()
This method returns the name of the encoding format for this key.
|
static final long serialVersionUID
java.lang.String getAlgorithm()
String such as "RSA".java.lang.String getFormat()
null if this key
does not have an encoding format.byte[] getEncoded()
null.