public class LunaPublicKeyRsa extends LunaKeyRsa implements LunaPublicKey, java.security.interfaces.RSAPublicKey
ivRandom, ivSecureRandom, keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE
Constructor and Description |
---|
LunaPublicKeyRsa(java.math.BigInteger biPublicExponent,
java.math.BigInteger biModulus) |
LunaPublicKeyRsa(int handle) |
LunaPublicKeyRsa(int handle,
int slot) |
LunaPublicKeyRsa(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 |
getPublicExponent() |
protected void |
verifyClassAndType()
Checks that the existing object handle being wrapped is a public RSA key.
|
getModulus, GetModulusLength
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 LunaPublicKeyRsa(int handle)
public LunaPublicKeyRsa(int handle, int slot)
public LunaPublicKeyRsa(LunaTokenObject object)
public LunaPublicKeyRsa(java.math.BigInteger biPublicExponent, java.math.BigInteger biModulus)
public java.math.BigInteger getPublicExponent()
getPublicExponent
in interface java.security.interfaces.RSAPublicKey
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.