public class LunaPublicKeyDh extends LunaKeyDh implements LunaPublicKey, javax.crypto.interfaces.DHPublicKey
ivRandom, ivSecureRandom, keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE
Constructor and Description |
---|
LunaPublicKeyDh(java.math.BigInteger Y,
java.math.BigInteger P,
java.math.BigInteger G,
int l) |
LunaPublicKeyDh(int handle) |
LunaPublicKeyDh(int handle,
int slot) |
LunaPublicKeyDh(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.
|
java.math.BigInteger |
getY() |
protected void |
verifyClassAndType()
Checks that the existing object handle being wrapped is a public DH key.
|
assign, AttributeToBigInteger, authorize, BigIntegerToAttribute, cacheAuthorizedSession, deleteCacheAuthorizedSession, DestroyKey, equals, generateRandomIv, getAlgorithm, 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 LunaPublicKeyDh(int handle)
public LunaPublicKeyDh(int handle, int slot)
public LunaPublicKeyDh(LunaTokenObject object)
public LunaPublicKeyDh(java.math.BigInteger Y, java.math.BigInteger P, java.math.BigInteger G, int l)
public java.math.BigInteger getY()
getY
in interface javax.crypto.interfaces.DHPublicKey
public java.lang.String getFormat()
LunaKey
This will be one of
protected byte[] getEncodedInternal()
getEncodedInternal
in class LunaKey
protected void verifyClassAndType()
verifyClassAndType
in class LunaKey
LunaException
- if there is a mismatchCopyright 2014-2018 SafeNet. All rights reserved.