public interface Key extends Serializable
Key
is the common interface for all keys.PublicKey
,
PrivateKey
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID
The
serialVersionUID to be compatible with JDK1.1. |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Returns the name of the algorithm of this key.
|
byte[] |
getEncoded()
Returns the encoded form of this key, or
null if encoding is not
supported by this key. |
String |
getFormat()
Returns the name of the format used to encode this key, or
null
if it can not be encoded. |
static final long serialVersionUID
serialVersionUID
to be compatible with JDK1.1.String getAlgorithm()
null
is returned.null
if the
algorithm is unknown.String getFormat()
null
if it can not be encoded.null
if it can not be encoded.byte[] getEncoded()
null
if encoding is not
supported by this key.null
if encoding is not
supported by this key.