Package org.conscrypt

Class OpenSSLServerSocketFactoryImpl


  • final class OpenSSLServerSocketFactoryImpl
    extends javax.net.ssl.SSLServerSocketFactory
    An implementation of SSLServerSocketFactory using BoringSSL.

    This name of this class cannot change in order to maintain backward-compatibility with GMS core ProviderInstallerImpl

    • Field Detail

      • useEngineSocketByDefault

        private static boolean useEngineSocketByDefault
      • instantiationException

        private java.io.IOException instantiationException
      • useEngineSocket

        private boolean useEngineSocket
    • Constructor Detail

      • OpenSSLServerSocketFactoryImpl

        OpenSSLServerSocketFactoryImpl()
      • OpenSSLServerSocketFactoryImpl

        OpenSSLServerSocketFactoryImpl​(SSLParametersImpl sslParameters)
    • Method Detail

      • setUseEngineSocketByDefault

        static void setUseEngineSocketByDefault​(boolean useEngineSocket)
        Configures the default socket type to be created for the default and all new instances.
      • setUseEngineSocket

        void setUseEngineSocket​(boolean useEngineSocket)
        Configures the socket to be created for this instance. If not called, useEngineSocketByDefault will be used.
      • getDefaultCipherSuites

        public java.lang.String[] getDefaultCipherSuites()
        Specified by:
        getDefaultCipherSuites in class javax.net.ssl.SSLServerSocketFactory
      • getSupportedCipherSuites

        public java.lang.String[] getSupportedCipherSuites()
        Specified by:
        getSupportedCipherSuites in class javax.net.ssl.SSLServerSocketFactory
      • createServerSocket

        public java.net.ServerSocket createServerSocket()
                                                 throws java.io.IOException
        Overrides:
        createServerSocket in class javax.net.ServerSocketFactory
        Throws:
        java.io.IOException
      • createServerSocket

        public java.net.ServerSocket createServerSocket​(int port)
                                                 throws java.io.IOException
        Specified by:
        createServerSocket in class javax.net.ServerSocketFactory
        Throws:
        java.io.IOException
      • createServerSocket

        public java.net.ServerSocket createServerSocket​(int port,
                                                        int backlog)
                                                 throws java.io.IOException
        Specified by:
        createServerSocket in class javax.net.ServerSocketFactory
        Throws:
        java.io.IOException
      • createServerSocket

        public java.net.ServerSocket createServerSocket​(int port,
                                                        int backlog,
                                                        java.net.InetAddress iAddress)
                                                 throws java.io.IOException
        Specified by:
        createServerSocket in class javax.net.ServerSocketFactory
        Throws:
        java.io.IOException