Package org.conscrypt

Class OpenSSLServerSocketFactoryImpl


public class OpenSSLServerSocketFactoryImpl
extends SSLServerSocketFactory
  • Constructor Details

    • OpenSSLServerSocketFactoryImpl

      public OpenSSLServerSocketFactoryImpl()
    • OpenSSLServerSocketFactoryImpl

      public OpenSSLServerSocketFactoryImpl​(SSLParametersImpl sslParameters)
  • Method Details

    • getDefaultCipherSuites

      public String[] getDefaultCipherSuites()
      Description copied from class: SSLServerSocketFactory
      Returns the names of the cipher suites that are enabled by default.
      Specified by:
      getDefaultCipherSuites in class SSLServerSocketFactory
      Returns:
      the names of the cipher suites that are enabled by default
    • getSupportedCipherSuites

      public String[] getSupportedCipherSuites()
      Description copied from class: SSLServerSocketFactory
      Returns the list of supported cipher suites that could be enabled for an SSL connection created by this factory.
      Specified by:
      getSupportedCipherSuites in class SSLServerSocketFactory
      Returns:
      the list of supported cipher suites
    • createServerSocket

      public ServerSocket createServerSocket() throws IOException
      Description copied from class: ServerSocketFactory
      Creates a new server socket which is not bound to any local address. This method has to be overridden by a subclass otherwise a SocketException is thrown.
      Overrides:
      createServerSocket in class ServerSocketFactory
      Returns:
      the created unbound server socket.
      Throws:
      IOException - if an error occurs while creating a new server socket.
    • createServerSocket

      public ServerSocket createServerSocket​(int port) throws IOException
      Description copied from class: ServerSocketFactory
      Creates a new server socket which is bound to the given port with a maximum backlog of 50 unaccepted connections.
      Specified by:
      createServerSocket in class ServerSocketFactory
      Parameters:
      port - the port on which the created socket has to listen.
      Returns:
      the created bound server socket.
      Throws:
      IOException - if an error occurs while creating a new server socket.
    • createServerSocket

      public ServerSocket createServerSocket​(int port, int backlog) throws IOException
      Description copied from class: ServerSocketFactory
      Creates a new server socket which is bound to the given port and configures its maximum of queued connections.
      Specified by:
      createServerSocket in class ServerSocketFactory
      Parameters:
      port - the port on which the created socket has to listen.
      backlog - the maximum number of unaccepted connections. Passing 0 or a negative value yields the default backlog of 50.
      Returns:
      the created bound server socket.
      Throws:
      IOException - if an error occurs while creating a new server socket.
    • createServerSocket

      public ServerSocket createServerSocket​(int port, int backlog, InetAddress iAddress) throws IOException
      Description copied from class: ServerSocketFactory
      Creates a new server socket which is bound to the given address on the specified port and configures its maximum of queued connections.
      Specified by:
      createServerSocket in class ServerSocketFactory
      Parameters:
      port - the port on which the created socket has to listen.
      backlog - the maximum number of unaccepted connections. Passing 0 or a negative value yields the default backlog of 50.
      iAddress - the address of the network interface which is used by the created socket.
      Returns:
      the created bound server socket.
      Throws:
      IOException - if an error occurs while creating a new server socket.