Package org.conscrypt

Class OpenSSLRSAPrivateCrtKey

  • All Implemented Interfaces:
    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, OpenSSLKeyHolder

    final class OpenSSLRSAPrivateCrtKey
    extends OpenSSLRSAPrivateKey
    implements java.security.interfaces.RSAPrivateCrtKey
    An implementation of PrivateKey for RSA keys which uses BoringSSL to perform all the operations.
    • Field Detail

      • publicExponent

        private java.math.BigInteger publicExponent
      • primeP

        private java.math.BigInteger primeP
      • primeQ

        private java.math.BigInteger primeQ
      • primeExponentP

        private java.math.BigInteger primeExponentP
      • primeExponentQ

        private java.math.BigInteger primeExponentQ
      • crtCoefficient

        private java.math.BigInteger crtCoefficient
    • Constructor Detail

      • OpenSSLRSAPrivateCrtKey

        OpenSSLRSAPrivateCrtKey​(OpenSSLKey key)
      • OpenSSLRSAPrivateCrtKey

        OpenSSLRSAPrivateCrtKey​(OpenSSLKey key,
                                byte[][] params)
      • OpenSSLRSAPrivateCrtKey

        OpenSSLRSAPrivateCrtKey​(java.security.spec.RSAPrivateCrtKeySpec rsaKeySpec)
                         throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
    • Method Detail

      • init

        private static OpenSSLKey init​(java.security.spec.RSAPrivateCrtKeySpec rsaKeySpec)
                                throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • getInstance

        static OpenSSLKey getInstance​(java.security.interfaces.RSAPrivateCrtKey rsaPrivateKey)
                               throws java.security.InvalidKeyException
        Throws:
        java.security.InvalidKeyException
      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
        Specified by:
        getPublicExponent in interface java.security.interfaces.RSAPrivateCrtKey
      • 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
      • readObject

        private void readObject​(java.io.ObjectInputStream stream)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream stream)
                          throws java.io.IOException
        Throws:
        java.io.IOException