public class LunaPublicKeyEC extends LunaKeyEC implements LunaPublicKey, java.security.interfaces.ECPublicKey
ivRandom, ivSecureRandom, keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE
Constructor and Description |
---|
LunaPublicKeyEC(byte[] point,
byte[] params) |
LunaPublicKeyEC(byte[] point,
java.security.spec.ECParameterSpec params) |
LunaPublicKeyEC(java.security.spec.ECPoint point,
java.security.spec.ECParameterSpec params) |
LunaPublicKeyEC(int handle) |
LunaPublicKeyEC(int handle,
int slot) |
LunaPublicKeyEC(LunaTokenObject object) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getEncodedInternal() |
java.lang.String |
getFormat()
Returns the name of the format used to encode the LunaKey object.
|
byte[] |
getP() |
java.security.spec.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
assign, AttributeToBigInteger, authorize, BigIntegerToAttribute, cacheAuthorizedSession, deleteCacheAuthorizedSession, DestroyKey, equals, generateRandomIv, GetAlias, getAuthorizedSession, getBytesRemaining, getCacheAuthorizedSession, GetDateMadePersistent, getEncoded, GetFingerprint, getKeyByType, GetKeyClass, GetKeyHandle, getKeySize, getKeyType, GetKeyType, GetOUID, getSession, getSlot, getUsageCount, getUsageLimit, hashCode, incrementFailedAuthorizationCount, Initialize, Initialize, injectKey, InjectPrivateKey, InjectPrivateKey, InjectPrivateKey, InjectPrivateKey, isInitialized, IsKeyPersistent, LocateKeyByAlias, LocateKeyByAlias, LocateKeyByFingerprint, LocateKeyByFingerprint, LocateKeyByHandle, LocateKeyByHandle, LocateKeyByOUID, LocateKeyByOUID, LocateKeyOnlyByAlias, LocateKeyOnlyByAlias, MakePersistent, release, resetAuthorizationData, resetAuthorizedSession, setAuthorizationData, setKeySize, setUsageCount, setUsageLimit, toString
public LunaPublicKeyEC(int handle)
public LunaPublicKeyEC(int handle, int slot)
public LunaPublicKeyEC(LunaTokenObject object)
public LunaPublicKeyEC(byte[] point, byte[] params)
public LunaPublicKeyEC(byte[] point, java.security.spec.ECParameterSpec params)
public LunaPublicKeyEC(java.security.spec.ECPoint point, java.security.spec.ECParameterSpec params)
public byte[] getP()
protected byte[] getEncodedInternal()
getEncodedInternal
in class LunaKey
public java.security.spec.ECPoint getW()
getW
in interface java.security.interfaces.ECPublicKey
public java.lang.String getFormat()
LunaKey
This will be one of
protected void verifyClassAndType()
verifyClassAndType
in class LunaKey
LunaException
- if there is a mismatchCopyright 2014-2018 SafeNet. All rights reserved.