Known Indirect Subclasses
DHPrivateKey,
DHPublicKey,
DSAPrivateKey,
DSAPublicKey,
ECPrivateKey,
ECPublicKey,
PBEKey,
PrivateKey,
PublicKey,
RSAMultiPrimePrivateCrtKey,
RSAPrivateCrtKey,
RSAPrivateKey,
RSAPublicKey,
SecretKey,
SecretKeySpec
|
Class Overview
Defines the basic properties of all key objects.
Summary
| Public Methods |
|
abstract
String
|
getAlgorithm()
Returns the name of the algorithm that this key will work
with.
|
|
abstract
byte[]
|
getEncoded()
Returns the encoded form of the receiver.
|
|
abstract
String
|
getFormat()
Returns the name of the format used to encode the key, or null
if it can not be encoded.
|
Constants
public
static
final
long
serialVersionUID
Constant Value:
6603384152749567654
(0x5ba3eee69414eea6)
Public Methods
public
abstract
String
getAlgorithm
()
Returns the name of the algorithm that this key will work
with. If the algorithm is unknown, it returns null.
Returns
- String the receiver's algorithm
public
abstract
byte[]
getEncoded
()
Returns the encoded form of the receiver.
Returns
- byte[] the encoded form of the receiver
public
abstract
String
getFormat
()
Returns the name of the format used to encode the key, or null
if it can not be encoded.
Returns
- String the receiver's encoding format