PrivateKey
public
interface
PrivateKey
implements
Key
Known Indirect Subclasses
DHPrivateKey |
The interface to a Diffie-Hellman private key.
|
DSAPrivateKey |
The standard interface to a DSA private key.
|
ECPrivateKey |
The interface to an elliptic curve (EC) private key.
|
RSAMultiPrimePrivateCrtKey |
The interface to an RSA multi-prime private key, as defined in the
PKCS#1 v2.1, using the Chinese Remainder Theorem
(CRT) information values.
|
RSAPrivateCrtKey |
The interface to an RSA private key, as defined in the PKCS#1 standard,
using the Chinese Remainder Theorem (CRT) information values.
|
RSAPrivateKey |
The interface to an RSA private key.
|
|
A private key. This interface contains no methods or constants.
It merely serves to group (and provide type safety for) all private key
interfaces.
Note: The specialized private key interfaces extend this interface.
See, for example, the DSAPrivateKey interface in
java.security.interfaces
.
Summary
Constants |
long |
serialVersionUID
The class fingerprint that is set to indicate serialization
compatibility with a previous version of the class.
|
Inherited constants |
From
interface
java.security.Key
long |
serialVersionUID
The class fingerprint that is set to indicate
serialization compatibility with a previous
version of the class.
|
|
Inherited methods |
From
interface
java.security.Key
abstract
String
|
getAlgorithm()
Returns the standard algorithm name for this key.
|
abstract
byte[]
|
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
abstract
String
|
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
|
Constants
serialVersionUID
long serialVersionUID
The class fingerprint that is set to indicate serialization
compatibility with a previous version of the class.
Constant Value:
6034044314589513430
(0x53bd3b559a12c6d6)