java.security.spec
public class: ECPrivateKeySpec [javadoc |
source]
java.lang.Object
java.security.spec.ECPrivateKeySpec
All Implemented Interfaces:
KeySpec
This immutable class specifies an elliptic curve private key with
its associated parameters.
| Constructor: |
public ECPrivateKeySpec(BigInteger s,
ECParameterSpec params) {
if (s == null) {
throw new NullPointerException("s is null");
}
if (params == null) {
throw new NullPointerException("params is null");
}
this.s = s;
this.params = params;
}
Creates a new ECPrivateKeySpec with the specified
parameter values. Parameters:
s - the private value.
params - the associated elliptic curve domain
parameters.
Throws:
NullPointerException - if s
or params is null.
- exception:
NullPointerException - if s
or params is null.
|
| Method from java.security.spec.ECPrivateKeySpec Summary: |
|---|
|
getParams, getS |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.security.spec.ECPrivateKeySpec Detail: |
public ECParameterSpec getParams() {
return params;
}
Returns the associated elliptic curve domain
parameters. |
public BigInteger getS() {
return s;
}
Returns the private value S. |