java.security.spec
public class: ECPublicKeySpec [javadoc |
source]
java.lang.Object
java.security.spec.ECPublicKeySpec
All Implemented Interfaces:
KeySpec
This immutable class specifies an elliptic curve public key with
its associated parameters.
| Constructor: |
public ECPublicKeySpec(ECPoint w,
ECParameterSpec params) {
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;
}
Creates a new ECPublicKeySpec with the specified
parameter values. Parameters:
w - the public point.
params - the associated elliptic curve domain
parameters.
Throws:
NullPointerException - if w
or params is null.
IllegalArgumentException - if w
is point at infinity, i.e. ECPoint.POINT_INFINITY
- exception:
NullPointerException - if w
or params is null.
- exception:
IllegalArgumentException - if w
is point at infinity, i.e. ECPoint.POINT_INFINITY
|
| Method from java.security.spec.ECPublicKeySpec Summary: |
|---|
|
getParams, getW |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.security.spec.ECPublicKeySpec Detail: |
public ECParameterSpec getParams() {
return params;
}
Returns the associated elliptic curve domain
parameters. |
public ECPoint getW() {
return w;
}
Returns the public point W. |