Package org.conscrypt
Class SSLServerSocketFactoryImpl
java.lang.Object
javax.net.ServerSocketFactory
javax.net.ssl.SSLServerSocketFactory
org.conscrypt.SSLServerSocketFactoryImpl
public class SSLServerSocketFactoryImpl extends SSLServerSocketFactory
Implementation of SSLServerSocketFactory.
-
Constructor Summary
Constructors Modifier Constructor Description SSLServerSocketFactoryImpl()Constructor.protectedSSLServerSocketFactoryImpl(SSLParametersImpl sslParameters)Constructor. -
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
-
SSLServerSocketFactoryImpl
public SSLServerSocketFactoryImpl()Constructor. -
SSLServerSocketFactoryImpl
Constructor.
-
-
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
- See Also:
SSLServerSocketFactory.getDefaultCipherSuites()
-
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
- See Also:
SSLServerSocketFactory.getSupportedCipherSuites()
-
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.- See Also:
ServerSocketFactory.createServerSocket()
-
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.- See Also:
ServerSocketFactory.createServerSocket(int)
-
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.- See Also:
ServerSocketFactory.createServerSocket(int,int)
-
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.- See Also:
ServerSocketFactory.createServerSocket(int,int,InetAddress)
-