Package org.conscrypt

Class DefaultSSLContextImpl

    • Field Detail

      • KEY_MANAGERS

        private static javax.net.ssl.KeyManager[] KEY_MANAGERS
        Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor
      • TRUST_MANAGERS

        private static javax.net.ssl.TrustManager[] TRUST_MANAGERS
        Accessed by SSLContextImpl(DefaultSSLContextImpl) holding the DefaultSSLContextImpl.class monitor
    • Constructor Detail

      • DefaultSSLContextImpl

        private DefaultSSLContextImpl​(java.lang.String[] protocols)
                               throws java.security.GeneralSecurityException,
                                      java.io.IOException
        DefaultSSLContextImpl delegates the work to the super class since there is no way to put a synchronized around both the call to super and the rest of this constructor to guarantee that we don't have races in creating the state shared between all default SSLContexts.
        Throws:
        java.security.GeneralSecurityException
        java.io.IOException
    • Method Detail

      • getKeyManagers

        javax.net.ssl.KeyManager[] getKeyManagers()
                                           throws java.security.GeneralSecurityException,
                                                  java.io.IOException
        Throws:
        java.security.GeneralSecurityException
        java.io.IOException
      • getTrustManagers

        javax.net.ssl.TrustManager[] getTrustManagers()
                                               throws java.security.GeneralSecurityException,
                                                      java.io.IOException
        Throws:
        java.security.GeneralSecurityException
        java.io.IOException
      • engineInit

        public void engineInit​(javax.net.ssl.KeyManager[] kms,
                               javax.net.ssl.TrustManager[] tms,
                               java.security.SecureRandom sr)
                        throws java.security.KeyManagementException
        Description copied from class: OpenSSLContextImpl
        Initializes this SSLContext instance. All of the arguments are optional, and the security providers will be searched for the required implementations of the needed algorithms.
        Overrides:
        engineInit in class OpenSSLContextImpl
        Parameters:
        kms - the key sources or null
        tms - the trust decision sources or null
        sr - the randomness source or null
        Throws:
        java.security.KeyManagementException - if initializing this instance fails