# ECKey

public interface **ECKey**

|---|---|---|
| Known Indirect Subclasses [ECPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPrivateKey.html), [ECPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPublicKey.html) |---|---| | [ECPrivateKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPrivateKey.html) | The interface to an elliptic curve (EC) private key. | | [ECPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECPublicKey.html) | The interface to an elliptic curve (EC) public key. | |||

The interface to an elliptic curve (EC) key.

### Public Method Summary

|---|---|
| abstract [ECParameterSpec](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECParameterSpec.html) | [getParams](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/interfaces/ECKey.html#getParams())() Returns the domain parameters associated with this key. |

## Public Methods

#### public abstract [ECParameterSpec](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECParameterSpec.html)
**getParams**
()

Returns the domain parameters associated
with this key. The domain parameters are
either explicitly specified or implicitly
created during key generation.

##### Returns

- the associated domain parameters.