# DHKey

public interface **DHKey**

|---|---|---|
| Known Indirect Subclasses [DHPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/DHPrivateKey.html), [DHPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/DHPublicKey.html) |---|---| | [DHPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/DHPrivateKey.html) | The interface to a Diffie-Hellman private key. | | [DHPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/DHPublicKey.html) | The interface to a Diffie-Hellman public key. | |||

The interface to a Diffie-Hellman key.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/spec/DHParameterSpec.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/DHPublicKey.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/DHPrivateKey.html`

### Public Method Summary

|---|---|
| abstract [DHParameterSpec](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/spec/DHParameterSpec.html) | [getParams](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/interfaces/DHKey.html#getParams())() Returns the key parameters. |

## Public Methods

#### public abstract [DHParameterSpec](https://developers.google.com/j2objc/javadoc/jre/reference/javax/crypto/spec/DHParameterSpec.html)
**getParams**
()

Returns the key parameters.

##### Returns

- the key parameters