Class RSAPublicKeyImpl
- java.lang.Object
-
- sun.security.x509.X509Key
-
- com.fortanix.sdkms.jce.provider.keys.asym.rsa.RSAPublicKeyImpl
-
- All Implemented Interfaces:
SdkmsCipherKey,SdkmsKey,Serializable,RSAKey,RSAPublicKey,Key,PublicKey
public class RSAPublicKeyImpl extends sun.security.x509.X509Key implements RSAPublicKey, SdkmsCipherKey
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.interfaces.RSAPublicKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description RSAPublicKeyImpl(com.fortanix.sdkms.v1.model.KeyObject keyObject)RSAPublicKeyImpl(com.fortanix.sdkms.v1.model.SobjectDescriptor descriptor)RSAPublicKeyImpl(String keyId, Integer keySize, byte[] encoded, String transientKey)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()com.fortanix.sdkms.v1.model.SobjectDescriptorgetKeyDescriptor()IntegergetKeySize()BigIntegergetModulus()BigIntegergetPublicExponent()protected voidparseKeyBits()Parse the key.-
Methods inherited from class sun.security.x509.X509Key
decode, decode, encode, encode, equals, getAlgorithmId, getEncoded, getEncodedInternal, getFormat, getKey, hashCode, parse, setKey, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.security.Key
getEncoded, getFormat
-
-
-
-
Constructor Detail
-
RSAPublicKeyImpl
public RSAPublicKeyImpl(com.fortanix.sdkms.v1.model.SobjectDescriptor descriptor)
-
RSAPublicKeyImpl
public RSAPublicKeyImpl(com.fortanix.sdkms.v1.model.KeyObject keyObject)
-
RSAPublicKeyImpl
@Deprecated public RSAPublicKeyImpl(String keyId, Integer keySize, byte[] encoded, String transientKey) throws InvalidKeyException
Deprecated.- Throws:
InvalidKeyException
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithmin interfaceKey- Overrides:
getAlgorithmin classsun.security.x509.X509Key
-
getModulus
public BigInteger getModulus()
- Specified by:
getModulusin interfaceRSAKey
-
getPublicExponent
public BigInteger getPublicExponent()
- Specified by:
getPublicExponentin interfaceRSAPublicKey
-
parseKeyBits
protected void parseKeyBits() throws InvalidKeyExceptionParse the key. Called by X509Key.- Overrides:
parseKeyBitsin classsun.security.x509.X509Key- Throws:
InvalidKeyException
-
getKeySize
public Integer getKeySize()
- Specified by:
getKeySizein interfaceSdkmsCipherKey
-
getKeyDescriptor
public com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()
- Specified by:
getKeyDescriptorin interfaceSdkmsKey
-
-