public class LunaPublicKeyDh extends LunaKeyDh implements LunaPublicKey, DHPublicKey
keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE, WRAP_IVserialVersionUID| Constructor and Description |
|---|
LunaPublicKeyDh(BigInteger Y,
BigInteger P,
BigInteger G,
int l) |
LunaPublicKeyDh(int handle) |
LunaPublicKeyDh(int handle,
int slot) |
LunaPublicKeyDh(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.
|
BigInteger |
getY() |
protected void |
verifyClassAndType()
Checks that the existing object handle being wrapped is a public DH key.
|
AttributeToBigInteger, BigIntegerToAttribute, DestroyKey, equals, getAlgorithm, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAlgorithm, getEncodedpublic LunaPublicKeyDh(int handle)
public LunaPublicKeyDh(int handle,
int slot)
public LunaPublicKeyDh(LunaTokenObject object)
public LunaPublicKeyDh(BigInteger Y, BigInteger P, BigInteger G, int l)
public BigInteger getY()
getY in interface DHPublicKeypublic String getFormat()
LunaKeyThis will be one of
protected byte[] getEncodedInternal()
getEncodedInternal in class LunaKeyprotected void verifyClassAndType()
verifyClassAndType in class LunaKeyLunaException - if there is a mismatchCopyright 2014-2016 SafeNet Inc