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

Field Summary
static long serialVersionUID
          Compatible with JDK1.4.
 
Method Summary
 BigInteger getX()
          Returns the private value x.
 
Methods inherited from interface javax.crypto.interfaces.DHKey
getParams
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Field Detail

serialVersionUID

static final long serialVersionUID
Compatible with JDK1.4.

See Also:
Constant Field Values
Method Detail

getX

BigInteger getX()
Returns the private value x.

Returns:
The private value x.