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 String
getAlgorithm()
com.fortanix.sdkms.v1.model.SobjectDescriptor
getKeyDescriptor()
Integer
getKeySize()
BigInteger
getModulus()
BigInteger
getPublicExponent()
protected void
parseKeyBits()
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:
getAlgorithm
in interfaceKey
- Overrides:
getAlgorithm
in classsun.security.x509.X509Key
-
getModulus
public BigInteger getModulus()
- Specified by:
getModulus
in interfaceRSAKey
-
getPublicExponent
public BigInteger getPublicExponent()
- Specified by:
getPublicExponent
in interfaceRSAPublicKey
-
parseKeyBits
protected void parseKeyBits() throws InvalidKeyException
Parse the key. Called by X509Key.- Overrides:
parseKeyBits
in classsun.security.x509.X509Key
- Throws:
InvalidKeyException
-
getKeySize
public Integer getKeySize()
- Specified by:
getKeySize
in interfaceSdkmsCipherKey
-
getKeyDescriptor
public com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()
- Specified by:
getKeyDescriptor
in interfaceSdkmsKey
-
-