java.security
public
interface
java.security.Key
Defines the basic properties of all key objects.
Known Indirect Subclasses
DHPrivateKey,
DHPublicKey,
DSAPrivateKey,
DSAPublicKey,
ECPrivateKey,
ECPublicKey,
PBEKey,
PrivateKey,
PublicKey,
RSAMultiPrimePrivateCrtKey,
RSAPrivateCrtKey,
RSAPrivateKey,
RSAPublicKey,
SecretKey,
SecretKeySpec
Summary
Details
Constants
public
static
final
long
serialVersionUID
Constant Value:
6603384152749567654
(0x5ba3eee69414eea6)
Public Methods
public
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
byte[]
getEncoded()
Returns the encoded form of the receiver.
Returns
- byte[] the encoded form of the receiver
public
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