fi.hut.tcm.tessa.ECImplementation
Class ECDSAPublicKeySpec

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

public class ECDSAPublicKeySpec
extends Object
implements KeySpec

This class specifies an ECDSA public key with its associated parameters.


Constructor Summary
ECDSAPublicKeySpec(byte[] publicKey)
          Creates a new ECDSAPublicKeySpec with the specified parameter values.
ECDSAPublicKeySpec(ECDSAParams curve, ECPoint q)
          Creates a new ECDSAPublicKeySpec with the specified parameter values.
 
Method Summary
 ECDSAParams getParams()
          Returns the elliptic curve.
 ECPoint getQ()
          Returns the public key Q.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECDSAPublicKeySpec

public ECDSAPublicKeySpec(byte[] publicKey)
Creates a new ECDSAPublicKeySpec with the specified parameter values.
Parameters:
curve - the elliptic curve.
q - the public key.

ECDSAPublicKeySpec

public ECDSAPublicKeySpec(ECDSAParams curve,
                          ECPoint q)
Creates a new ECDSAPublicKeySpec with the specified parameter values.
Parameters:
curve - the elliptic curve.
q - the public key.
Method Detail

getQ

public ECPoint getQ()
Returns the public key Q.
Returns:
the public key y.

getParams

public ECDSAParams getParams()
Returns the elliptic curve.
Returns:
the elliptic curve.