Package java.security.spec
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 Summary
Constructors Constructor Description ECPublicKeySpec(ECPoint w, ECParameterSpec params)Creates a newECPublicKeywith the specified public elliptic curve point and parameter specification. -
Method Summary
Modifier and Type Method Description ECParameterSpecgetParams()Returns the domain parameter specification.ECPointgetW()Returns the public elliptic curve pointW.
-
Constructor Details
-
ECPublicKeySpec
Creates a newECPublicKeywith the specified public elliptic curve point and parameter specification.- Parameters:
w- the public elliptic curve pointW.params- the domain parameter specification.- Throws:
IllegalArgumentException- if the specified pointWis at infinity.
-
-
Method Details
-
getParams
Returns the domain parameter specification.- Returns:
- the domain parameter specification.
-
getW
Returns the public elliptic curve pointW.- Returns:
- the public elliptic curve point
W.
-