java.security.spec
Class ECPublicKeySpec

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.ECPublicKeySpec
All Implemented Interfaces:
KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec

public class ECPublicKeySpec
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec

This immutable class specifies an elliptic curve public key with its associated parameters.

Since:
1.5
See Also:
KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec , ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint , ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec

Constructor Summary
ECPublicKeySpec sample code for java.security.spec.ECPublicKeySpec.ECPublicKeySpec(java.security.spec.ECPoint, java.security.spec.ECParameterSpec) definition code for java.security.spec.ECPublicKeySpec.ECPublicKeySpec(java.security.spec.ECPoint, java.security.spec.ECParameterSpec) (ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint  w, ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec  params)
          Creates a new ECPublicKeySpec with the specified parameter values.
 
Method Summary
 ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec getParams sample code for java.security.spec.ECPublicKeySpec.getParams() definition code for java.security.spec.ECPublicKeySpec.getParams() ()
          Returns the associated elliptic curve domain parameters.
 ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint getW sample code for java.security.spec.ECPublicKeySpec.getW() definition code for java.security.spec.ECPublicKeySpec.getW() ()
          Returns the public point W.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

ECPublicKeySpec sample code for java.security.spec.ECPublicKeySpec(java.security.spec.ECPoint, java.security.spec.ECParameterSpec) definition code for java.security.spec.ECPublicKeySpec(java.security.spec.ECPoint, java.security.spec.ECParameterSpec)

public ECPublicKeySpec(ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint  w,
                       ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec  params)
Creates a new ECPublicKeySpec with the specified parameter values.

Parameters:
w - the public point.
params - the associated elliptic curve domain parameters.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if w or params is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if w is point at infinity, i.e. ECPoint.POINT_INFINITY
Method Detail

getW sample code for java.security.spec.ECPublicKeySpec.getW() definition code for java.security.spec.ECPublicKeySpec.getW()

public ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint  getW()
Returns the public point W.

Returns:
the public point W.

getParams sample code for java.security.spec.ECPublicKeySpec.getParams() definition code for java.security.spec.ECPublicKeySpec.getParams()

public ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec  getParams()
Returns the associated elliptic curve domain parameters.

Returns:
the EC domain parameters.