public class LunaPublicKeyECDsa extends LunaKeyEC implements LunaPublicKey, ECPublicKey
keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE, WRAP_IV
serialVersionUID
Constructor and Description |
---|
LunaPublicKeyECDsa(byte[] point,
byte[] params) |
LunaPublicKeyECDsa(byte[] point,
ECParameterSpec params) |
LunaPublicKeyECDsa(ECPoint point,
ECParameterSpec params) |
LunaPublicKeyECDsa(int handle) |
LunaPublicKeyECDsa(int handle,
int slot) |
LunaPublicKeyECDsa(LunaTokenObject object) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getEncodedInternal() |
String |
getFormat()
Returns the name of the format used to encode the LunaKey object.
|
byte[] |
getP() |
ECPoint |
getW()
Returns the EC point W for this key.
|
protected void |
verifyClassAndType()
Checks that the existing object handle being wrapped is a public ECDSA key.
|
getAlgorithm, getParams
AttributeToBigInteger, BigIntegerToAttribute, DestroyKey, equals, GetAlias, GetDateMadePersistent, getEncoded, GetFingerprint, GetKeyClass, GetKeyHandle, getKeySize, GetKeyType, getSession, getSlot, getUsageCount, getUsageLimit, hashCode, Initialize, Initialize, injectKey, InjectPrivateKey, InjectPrivateKey, InjectPrivateKey, InjectPrivateKey, IsKeyPersistent, LocateKeyByAlias, LocateKeyByAlias, LocateKeyByFingerprint, LocateKeyByFingerprint, LocateKeyByHandle, LocateKeyByHandle, LocateKeyOnlyByAlias, LocateKeyOnlyByAlias, MakePersistent, release, setKeySize, setUsageCount, setUsageLimit, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAlgorithm, getEncoded
public LunaPublicKeyECDsa(int handle)
public LunaPublicKeyECDsa(int handle, int slot)
public LunaPublicKeyECDsa(LunaTokenObject object)
public LunaPublicKeyECDsa(byte[] point, byte[] params)
public LunaPublicKeyECDsa(byte[] point, ECParameterSpec params)
public LunaPublicKeyECDsa(ECPoint point, ECParameterSpec params)
public byte[] getP()
protected byte[] getEncodedInternal()
getEncodedInternal
in class LunaKey
public ECPoint getW()
getW
in interface ECPublicKey
public String getFormat()
LunaKey
This will be one of
protected void verifyClassAndType()
verifyClassAndType
in class LunaKey
LunaException
- if there is a mismatchCopyright 2014-2016 SafeNet Inc