Top Description Fields Constructors Methods
java.security.spec

public Class ECPublicKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec

This immutable class specifies an elliptic curve public key with its associated parameters.
Author
Valerie Peng
Since
1.5
See Also
KeySpec, ECPoint, ECParameterSpec

Field Summary

Modifier and TypeField and Description
private final ECParameterSpec
private final ECPoint
w

Constructor Summary

AccessConstructor and Description
public
ECPublicKeySpec(ECPoint
the public point.
w
,
ECParameterSpec
the associated elliptic curve domain parameters.
params
)

Creates a new ECPublicKeySpec with the specified parameter values.

Method Summary

Modifier and TypeMethod and Description
public ECParameterSpec

Returns:

the EC domain parameters.
getParams
()

Returns the associated elliptic curve domain parameters.

public ECPoint

Returns:

the public point W.
getW
()

Returns the public point W.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

paramsback to summary
private final ECParameterSpec params
wback to summary
private final ECPoint w

Constructor Detail

ECPublicKeySpecback to summary
public ECPublicKeySpec(ECPoint w, ECParameterSpec params)

Creates a new ECPublicKeySpec with the specified parameter values.

Parameters
w:ECPoint

the public point.

params:ECParameterSpec

the associated elliptic curve domain parameters.

Exceptions
NullPointerException:
if w or params is null.
IllegalArgumentException:
if w is point at infinity, i.e. ECPoint.POINT_INFINITY

Method Detail

getParamsback to summary
public ECParameterSpec getParams()

Returns the associated elliptic curve domain parameters.

Returns:ECParameterSpec

the EC domain parameters.

getWback to summary
public ECPoint getW()

Returns the public point W.

Returns:ECPoint

the public point W.