Class ECPublicKeySpec

  • All Implemented Interfaces:
    KeySpec

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

      • 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 Detail

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