FileDocCategorySizeDatePackage
ECPublicKeySpec.javaAPI DocJava SE 5 API1724Fri Aug 26 14:57:18 BST 2005java.security.spec

ECPublicKeySpec

public class ECPublicKeySpec extends Object implements KeySpec
This immutable class specifies an elliptic curve public key with its associated parameters.
see
KeySpec
see
ECPoint
see
ECParameterSpec
author
Valerie Peng
version
1.3, 12/19/03
since
1.5

Fields Summary
private ECPoint
w
private ECParameterSpec
params
Constructors Summary
public ECPublicKeySpec(ECPoint w, ECParameterSpec params)
Creates a new ECPublicKeySpec with the specified parameter values.

param
w the public point.
param
params the associated elliptic curve domain parameters.
exception
NullPointerException if w or params is null.
exception
IllegalArgumentException if w is point at infinity, i.e. ECPoint.POINT_INFINITY

	if (w == null) {
            throw new NullPointerException("w is null");
        }
        if (params == null) {
            throw new NullPointerException("params is null");
        }
	if (w == ECPoint.POINT_INFINITY) {
	    throw new IllegalArgumentException("w is ECPoint.POINT_INFINITY");
	}
        this.w = w;
        this.params = params;
    
Methods Summary
public java.security.spec.ECParameterSpecgetParams()
Returns the associated elliptic curve domain parameters.

return
the EC domain parameters.

	return params;
    
public java.security.spec.ECPointgetW()
Returns the public point W.

return
the public point W.

	return w;