Package org.conscrypt
Class OpenSSLServerSocketFactoryImpl
java.lang.Object
javax.net.ServerSocketFactory
javax.net.ssl.SSLServerSocketFactory
org.conscrypt.OpenSSLServerSocketFactoryImpl
public class OpenSSLServerSocketFactoryImpl extends SSLServerSocketFactory
-
Constructor Summary
Constructors Constructor Description OpenSSLServerSocketFactoryImpl()OpenSSLServerSocketFactoryImpl(SSLParametersImpl sslParameters) -
Method Summary
Modifier and Type Method Description ServerSocketcreateServerSocket()Creates a new server socket which is not bound to any local address.ServerSocketcreateServerSocket(int port)Creates a new server socket which is bound to the given port with a maximum backlog of 50 unaccepted connections.ServerSocketcreateServerSocket(int port, int backlog)Creates a new server socket which is bound to the given port and configures its maximum of queued connections.ServerSocketcreateServerSocket(int port, int backlog, InetAddress iAddress)Creates a new server socket which is bound to the given address on the specified port and configures its maximum of queued connections.String[]getDefaultCipherSuites()Returns the names of the cipher suites that are enabled by default.String[]getSupportedCipherSuites()Returns the list of supported cipher suites that could be enabled for an SSL connection created by this factory.Methods inherited from class javax.net.ssl.SSLServerSocketFactory
getDefault
-
Constructor Details
-
OpenSSLServerSocketFactoryImpl
public OpenSSLServerSocketFactoryImpl() -
OpenSSLServerSocketFactoryImpl
-
-
Method Details
-
getDefaultCipherSuites
Description copied from class:SSLServerSocketFactoryReturns the names of the cipher suites that are enabled by default.- Specified by:
getDefaultCipherSuitesin classSSLServerSocketFactory- Returns:
- the names of the cipher suites that are enabled by default
-
getSupportedCipherSuites
Description copied from class:SSLServerSocketFactoryReturns the list of supported cipher suites that could be enabled for an SSL connection created by this factory.- Specified by:
getSupportedCipherSuitesin classSSLServerSocketFactory- Returns:
- the list of supported cipher suites
-
createServerSocket
Description copied from class:ServerSocketFactoryCreates a new server socket which is not bound to any local address. This method has to be overridden by a subclass otherwise aSocketExceptionis thrown.- Overrides:
createServerSocketin classServerSocketFactory- Returns:
- the created unbound server socket.
- Throws:
IOException- if an error occurs while creating a new server socket.
-
createServerSocket
Description copied from class:ServerSocketFactoryCreates a new server socket which is bound to the given port with a maximum backlog of 50 unaccepted connections.- Specified by:
createServerSocketin classServerSocketFactory- 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
Description copied from class:ServerSocketFactoryCreates a new server socket which is bound to the given port and configures its maximum of queued connections.- Specified by:
createServerSocketin classServerSocketFactory- 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 IOExceptionDescription copied from class:ServerSocketFactoryCreates a new server socket which is bound to the given address on the specified port and configures its maximum of queued connections.- Specified by:
createServerSocketin classServerSocketFactory- 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.
-