fi.hut.tcm.tessa.ECImplementation
Class ECDSAPrivateKeySpec

java.lang.Object
  |
  +--fi.hut.tcm.tessa.ECImplementation.ECDSAPrivateKeySpec

public class ECDSAPrivateKeySpec
extends Object
implements KeySpec

This class specifies a ECDSA private key with its associated parameters.


Constructor Summary
ECDSAPrivateKeySpec(byte[] privateKey)
          Creates a new ECDSAPrivateKeySpec with the specified parameter values.
ECDSAPrivateKeySpec(ECDSAParams curve, BigInteger d)
           
 
Method Summary
 BigInteger getD()
          Returns the private key.
 ECDSAParams getParams()
          Returns the parameters used (the curve).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECDSAPrivateKeySpec

public ECDSAPrivateKeySpec(byte[] privateKey)
Creates a new ECDSAPrivateKeySpec with the specified parameter values.

ECDSAPrivateKeySpec

public ECDSAPrivateKeySpec(ECDSAParams curve,
                           BigInteger d)
Method Detail

getParams

public ECDSAParams getParams()
Returns the parameters used (the curve).

getD

public BigInteger getD()
Returns the private key.