javax.crypto.interfaces

Interface DHKey

public interface DHKey

This interface marks public/private keys in the Diffie-Hellman key exchange algorithm. Implementations of Diffie-Hellman keys should implement this interface, and applications can safely cast keys that are known to be Diffie-Hellman keys to this interface.

Since: 1.4

Method Summary
DHParameterSpecgetParams()
Returns the Diffie-Hellman parameters for this key, which includes the generator and the prime.

Method Detail

getParams

public DHParameterSpec getParams()
Returns the Diffie-Hellman parameters for this key, which includes the generator and the prime.

Returns: The Diffie-Hellman parameters.