Class RSAPublicKeyImpl
- java.lang.Object
-
- sun.security.x509.X509Key
-
- com.fortanix.sdkms.jce.provider.keys.asym.rsa.RSAPublicKeyImpl
-
- All Implemented Interfaces:
SdkmsCipherKey,SdkmsKey,java.io.Serializable,java.security.interfaces.RSAKey,java.security.interfaces.RSAPublicKey,java.security.Key,java.security.PublicKey
public class RSAPublicKeyImpl extends sun.security.x509.X509Key implements java.security.interfaces.RSAPublicKey, SdkmsCipherKey
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RSAPublicKeyImpl(com.fortanix.sdkms.v1.model.KeyObject keyObject)RSAPublicKeyImpl(com.fortanix.sdkms.v1.model.SobjectDescriptor descriptor)RSAPublicKeyImpl(java.lang.String keyId, java.lang.Integer keySize, byte[] encoded, java.lang.String transientKey)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithm()com.fortanix.sdkms.v1.model.SobjectDescriptorgetKeyDescriptor()java.lang.IntegergetKeySize()java.math.BigIntegergetModulus()java.math.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
-
-
-
-
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(java.lang.String keyId, java.lang.Integer keySize, byte[] encoded, java.lang.String transientKey) throws java.security.InvalidKeyExceptionDeprecated.- Throws:
java.security.InvalidKeyException
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key- Overrides:
getAlgorithmin classsun.security.x509.X509Key
-
getModulus
public java.math.BigInteger getModulus()
- Specified by:
getModulusin interfacejava.security.interfaces.RSAKey
-
getPublicExponent
public java.math.BigInteger getPublicExponent()
- Specified by:
getPublicExponentin interfacejava.security.interfaces.RSAPublicKey
-
parseKeyBits
protected void parseKeyBits() throws java.security.InvalidKeyExceptionParse the key. Called by X509Key.- Overrides:
parseKeyBitsin classsun.security.x509.X509Key- Throws:
java.security.InvalidKeyException
-
getKeySize
public java.lang.Integer getKeySize()
- Specified by:
getKeySizein interfaceSdkmsCipherKey
-
getKeyDescriptor
public com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()
- Specified by:
getKeyDescriptorin interfaceSdkmsKey
-
-