Class RSAPrivateKeyImpl

  • All Implemented Interfaces:
    SdkmsCipherKey, SdkmsKey, java.io.Serializable, java.security.interfaces.RSAKey, java.security.interfaces.RSAPrivateCrtKey, java.security.interfaces.RSAPrivateKey, java.security.Key, java.security.PrivateKey, javax.security.auth.Destroyable

    public class RSAPrivateKeyImpl
    extends sun.security.pkcs.PKCS8Key
    implements java.security.interfaces.RSAPrivateKey, SdkmsCipherKey, java.security.interfaces.RSAPrivateCrtKey
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class sun.security.pkcs.PKCS8Key

        algid, encodedKey, key, version
      • 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​(java.lang.String keyId, java.lang.Integer keySize, java.math.BigInteger modulus, java.lang.String transientKey)
      Deprecated.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAlgorithm()  
      java.math.BigInteger getCrtCoefficient()  
      byte[] getEncoded()  
      java.lang.String getFormat()  
      com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()  
      java.lang.Integer getKeySize()  
      java.math.BigInteger getModulus()  
      java.math.BigInteger getPrimeExponentP()  
      java.math.BigInteger getPrimeExponentQ()  
      java.math.BigInteger getPrimeP()  
      java.math.BigInteger getPrimeQ()  
      java.math.BigInteger getPrivateExponent()  
      java.math.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
      • Methods inherited from interface java.security.interfaces.RSAKey

        getParams
    • 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​(java.lang.String keyId,
                                 java.lang.Integer keySize,
                                 java.math.BigInteger modulus,
                                 java.lang.String transientKey)
        Deprecated.
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
        Overrides:
        getAlgorithm in class sun.security.pkcs.PKCS8Key
      • getModulus

        public java.math.BigInteger getModulus()
        Specified by:
        getModulus in interface java.security.interfaces.RSAKey
      • getFormat

        public java.lang.String getFormat()
        Specified by:
        getFormat in interface java.security.Key
        Overrides:
        getFormat in class sun.security.pkcs.PKCS8Key
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface java.security.Key
        Overrides:
        getEncoded in class sun.security.pkcs.PKCS8Key
      • getKeyDescriptor

        public com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()
        Specified by:
        getKeyDescriptor in interface SdkmsKey
      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
        Specified by:
        getPublicExponent in interface java.security.interfaces.RSAPrivateCrtKey
      • getPrivateExponent

        public java.math.BigInteger getPrivateExponent()
        Specified by:
        getPrivateExponent in interface java.security.interfaces.RSAPrivateKey
      • getPrimeP

        public java.math.BigInteger getPrimeP()
        Specified by:
        getPrimeP in interface java.security.interfaces.RSAPrivateCrtKey
      • getPrimeQ

        public java.math.BigInteger getPrimeQ()
        Specified by:
        getPrimeQ in interface java.security.interfaces.RSAPrivateCrtKey
      • getPrimeExponentP

        public java.math.BigInteger getPrimeExponentP()
        Specified by:
        getPrimeExponentP in interface java.security.interfaces.RSAPrivateCrtKey
      • getPrimeExponentQ

        public java.math.BigInteger getPrimeExponentQ()
        Specified by:
        getPrimeExponentQ in interface java.security.interfaces.RSAPrivateCrtKey
      • getCrtCoefficient

        public java.math.BigInteger getCrtCoefficient()
        Specified by:
        getCrtCoefficient in interface java.security.interfaces.RSAPrivateCrtKey