public class LunaPublicKeyRsa extends LunaKeyRsa implements LunaPublicKey, RSAPublicKey
keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE, WRAP_IV
serialVersionUID
Constructor and Description |
---|
LunaPublicKeyRsa(BigInteger biPublicExponent,
BigInteger biModulus) |
LunaPublicKeyRsa(int handle) |
LunaPublicKeyRsa(int handle,
int slot) |
LunaPublicKeyRsa(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 |
getPublicExponent() |
protected void |
verifyClassAndType()
Checks that the existing object handle being wrapped is a public RSA key.
|
getModulus, GetModulusLength
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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAlgorithm, getEncoded
getModulus
public LunaPublicKeyRsa(int handle)
public LunaPublicKeyRsa(int handle, int slot)
public LunaPublicKeyRsa(LunaTokenObject object)
public LunaPublicKeyRsa(BigInteger biPublicExponent, BigInteger biModulus)
public BigInteger getPublicExponent()
getPublicExponent
in interface RSAPublicKey
public 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-2016 SafeNet Inc