javax.crypto.interfaces

Interface DHPrivateKey

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 {@link java.security.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
longserialVersionUID
Compatible with JDK1.4.
Method Summary
BigIntegergetX()
Returns the private value x.

Field Detail

serialVersionUID

public long serialVersionUID
Compatible with JDK1.4.

Method Detail

getX

public BigInteger getX()
Returns the private value x.

Returns: The private value x.