Class ECPublicKeySpec

java.lang.Object
java.security.spec.ECPublicKeySpec
All Implemented Interfaces:
KeySpec

public class ECPublicKeySpec
extends Object
implements KeySpec
The parameters specifying an Elliptic Curve (EC) public key.
  • Constructor Details

    • ECPublicKeySpec

      public ECPublicKeySpec​(ECPoint w, ECParameterSpec params)
      Creates a new ECPublicKey with the specified public elliptic curve point and parameter specification.
      Parameters:
      w - the public elliptic curve point W.
      params - the domain parameter specification.
      Throws:
      IllegalArgumentException - if the specified point W is at infinity.
  • Method Details

    • getParams

      public ECParameterSpec getParams()
      Returns the domain parameter specification.
      Returns:
      the domain parameter specification.
    • getW

      public ECPoint getW()
      Returns the public elliptic curve point W.
      Returns:
      the public elliptic curve point W.