Package javax.crypto.interfaces
Interface DHPrivateKey
- All Superinterfaces:
DHKey,Key,PrivateKey,Serializable
- All Known Implementing Classes:
BCDHPrivateKey,JCEDHPrivateKey
public interface DHPrivateKey extends DHKey, PrivateKey
The interface for a private key in the Diffie-Hellman key exchange protocol.
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDThe serialization version identifier. -
Method Summary
Modifier and Type Method Description BigIntegergetX()Returns this key's private value x.Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
-
Field Details
-
serialVersionUID
static final long serialVersionUIDThe serialization version identifier.- See Also:
- Constant Field Values
-
-
Method Details
-
getX
BigInteger getX()Returns this key's private value x.- Returns:
- this key's private value x.
-