java.security.spec
Class ECPrivateKeySpec

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

public class ECPrivateKeySpec
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 private 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 , ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec

Constructor Summary
ECPrivateKeySpec sample code for java.security.spec.ECPrivateKeySpec.ECPrivateKeySpec(java.math.BigInteger, java.security.spec.ECParameterSpec) definition code for java.security.spec.ECPrivateKeySpec.ECPrivateKeySpec(java.math.BigInteger, java.security.spec.ECParameterSpec) (BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  s, ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec  params)
          Creates a new ECPrivateKeySpec 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.ECPrivateKeySpec.getParams() definition code for java.security.spec.ECPrivateKeySpec.getParams() ()
          Returns the associated elliptic curve domain parameters.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getS sample code for java.security.spec.ECPrivateKeySpec.getS() definition code for java.security.spec.ECPrivateKeySpec.getS() ()
          Returns the private value S.
 
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

ECPrivateKeySpec sample code for java.security.spec.ECPrivateKeySpec(java.math.BigInteger, java.security.spec.ECParameterSpec) definition code for java.security.spec.ECPrivateKeySpec(java.math.BigInteger, java.security.spec.ECParameterSpec)

public ECPrivateKeySpec(BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  s,
                        ECParameterSpec sample code for java.security.spec.ECParameterSpec definition code for java.security.spec.ECParameterSpec  params)
Creates a new ECPrivateKeySpec with the specified parameter values.

Parameters:
s - the private value.
params - the associated elliptic curve domain parameters.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if s or params is null.
Method Detail

getS sample code for java.security.spec.ECPrivateKeySpec.getS() definition code for java.security.spec.ECPrivateKeySpec.getS()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getS()
Returns the private value S.

Returns:
the private value S.

getParams sample code for java.security.spec.ECPrivateKeySpec.getParams() definition code for java.security.spec.ECPrivateKeySpec.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.