javax.crypto.interfaces
Interface DHKey
- All Known Subinterfaces:
- DHPrivateKey, DHPublicKey
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 |
DHParameterSpec |
getParams()
Returns the Diffie-Hellman parameters for this key, which includes
the generator and the prime. |
getParams
DHParameterSpec getParams()
- Returns the Diffie-Hellman parameters for this key, which includes
the generator and the prime.
- Returns:
- The Diffie-Hellman parameters.