ECKey (Java SE 26 & JDK 26)
Description: declaration: module: java.base, package: java.security.interfaces, interface: ECKey
Keywords: java.security.interfaces.ECKey interface

# Interface ECKey

All Known Subinterfaces:
  `ECPrivateKey, ECPublicKey`

public interface ECKey
The interface to an elliptic curve (EC) key.

Since:
  1.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ECParameterSpec`
  `getParams()`
  Returns the domain parameters associated with this key.

- ## Method Details

  - ### getParams

    ECParameterSpec 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.