Class RSAPrivateKeyImpl
- java.lang.Object
-
- sun.security.pkcs.PKCS8Key
-
- com.fortanix.sdkms.jce.provider.keys.asym.rsa.RSAPrivateKeyImpl
-
- All Implemented Interfaces:
SdkmsCipherKey
,SdkmsKey
,Serializable
,RSAKey
,RSAPrivateCrtKey
,RSAPrivateKey
,Key
,PrivateKey
,Destroyable
public class RSAPrivateKeyImpl extends sun.security.pkcs.PKCS8Key implements RSAPrivateKey, SdkmsCipherKey, RSAPrivateCrtKey
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.interfaces.RSAPrivateCrtKey
serialVersionUID
-
Fields inherited from interface java.security.interfaces.RSAPrivateKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description RSAPrivateKeyImpl(com.fortanix.sdkms.v1.model.KeyObject keyObject)
RSAPrivateKeyImpl(com.fortanix.sdkms.v1.model.SobjectDescriptor descriptor)
RSAPrivateKeyImpl(String keyId, Integer keySize, BigInteger modulus, String transientKey)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
BigInteger
getCrtCoefficient()
byte[]
getEncoded()
String
getFormat()
com.fortanix.sdkms.v1.model.SobjectDescriptor
getKeyDescriptor()
Integer
getKeySize()
BigInteger
getModulus()
BigInteger
getPrimeExponentP()
BigInteger
getPrimeExponentQ()
BigInteger
getPrimeP()
BigInteger
getPrimeQ()
BigInteger
getPrivateExponent()
BigInteger
getPublicExponent()
-
Methods inherited from class sun.security.pkcs.PKCS8Key
decode, decode, encode, encode, equals, getAlgorithmId, hashCode, parse, parseKey, parseKeyBits, writeReplace
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Constructor Detail
-
RSAPrivateKeyImpl
public RSAPrivateKeyImpl(com.fortanix.sdkms.v1.model.SobjectDescriptor descriptor)
-
RSAPrivateKeyImpl
public RSAPrivateKeyImpl(com.fortanix.sdkms.v1.model.KeyObject keyObject)
-
RSAPrivateKeyImpl
@Deprecated public RSAPrivateKeyImpl(String keyId, Integer keySize, BigInteger modulus, String transientKey)
Deprecated.
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
- Overrides:
getAlgorithm
in classsun.security.pkcs.PKCS8Key
-
getModulus
public BigInteger getModulus()
- Specified by:
getModulus
in interfaceRSAKey
-
getFormat
public String getFormat()
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
- Overrides:
getEncoded
in classsun.security.pkcs.PKCS8Key
-
getKeySize
public Integer getKeySize()
- Specified by:
getKeySize
in interfaceSdkmsCipherKey
-
getKeyDescriptor
public com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()
- Specified by:
getKeyDescriptor
in interfaceSdkmsKey
-
getPublicExponent
public BigInteger getPublicExponent()
- Specified by:
getPublicExponent
in interfaceRSAPrivateCrtKey
-
getPrivateExponent
public BigInteger getPrivateExponent()
- Specified by:
getPrivateExponent
in interfaceRSAPrivateKey
-
getPrimeP
public BigInteger getPrimeP()
- Specified by:
getPrimeP
in interfaceRSAPrivateCrtKey
-
getPrimeQ
public BigInteger getPrimeQ()
- Specified by:
getPrimeQ
in interfaceRSAPrivateCrtKey
-
getPrimeExponentP
public BigInteger getPrimeExponentP()
- Specified by:
getPrimeExponentP
in interfaceRSAPrivateCrtKey
-
getPrimeExponentQ
public BigInteger getPrimeExponentQ()
- Specified by:
getPrimeExponentQ
in interfaceRSAPrivateCrtKey
-
getCrtCoefficient
public BigInteger getCrtCoefficient()
- Specified by:
getCrtCoefficient
in interfaceRSAPrivateCrtKey
-
-