javax.crypto.interfaces
Interface DHPrivateKey
- All Superinterfaces:
- DHKey, Key, PrivateKey, Serializable
public interface DHPrivateKey
- extends DHKey, PrivateKey
This interface marks a private key in the Diffie-Hellman key exchange
algorithm. It should be treated with as much care as any PrivateKey
.
Implementations of Diffie-Hellman private keys should implement
this interface. Applications that know a particular key is a
Diffie-Hellman private key can safely cast it to this interface.
- Since:
- 1.4
- See Also:
DHKey
,
DHPublicKey
Methods inherited from interface javax.crypto.interfaces.DHKey |
getParams |
serialVersionUID
static final long serialVersionUID
- Compatible with JDK1.4.
- See Also:
- Constant Field Values
getX
BigInteger getX()
- Returns the private value x.
- Returns:
- The private value x.