|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Key
This interfaces models the base characteristics that all keys must
have. These are: a key algorithm, an encoded form, and a format used
to encode the key. Specific key types inherit from this interface.
Note that since this interface extends Serializable, all
keys may be serialized. Keys are generally obtained through key generators,
including KeyFactory.
PublicKey,
PrivateKey,
KeyPair,
KeyPairGenerator,
KeyFactory,
KeySpec,
Identity,
Signer| Field Summary | |
|---|---|
static 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. |
| Field Detail |
|---|
static final long serialVersionUID
| Method Detail |
|---|
String getAlgorithm()
String such as "RSA".
String getFormat()
null if this key
does not have an encoding format.
byte[] getEncoded()
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||