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.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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.
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.