public final class

SSLServerSocketFactoryImpl

extends SSLServerSocketFactory
java.lang.Object
   ↳ javax.net.ServerSocketFactory
     ↳ javax.net.ssl.SSLServerSocketFactory
       ↳ sun.security.ssl.SSLServerSocketFactoryImpl

Class Overview

This class creates SSL server sockets.

Summary

Public Constructors
SSLServerSocketFactoryImpl()
Constructor used to instantiate the default factory.
Public Methods
ServerSocket createServerSocket(int port)
Returns a server socket bound to the specified port.
ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress)
Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
ServerSocket createServerSocket(int port, int backlog)
Returns a server socket bound to the specified port, and uses the specified connection backlog.
ServerSocket createServerSocket()
Returns an unbound server socket.
String[] getDefaultCipherSuites()
Returns the subset of the supported cipher suites which are enabled by default.
String[] getSupportedCipherSuites()
Returns the names of the cipher suites which could be enabled for use on an SSL connection.
[Expand]
Inherited Methods
From class javax.net.ssl.SSLServerSocketFactory
From class javax.net.ServerSocketFactory
From class java.lang.Object

Public Constructors

public SSLServerSocketFactoryImpl ()

Constructor used to instantiate the default factory. This method is only called if the old "ssl.ServerSocketFactory.provider" property in the java.security file is set.

Throws
Exception

Public Methods

public ServerSocket createServerSocket (int port)

Returns a server socket bound to the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory.

Parameters
port the port to listen to
Returns
  • the ServerSocket
Throws
IOException

public ServerSocket createServerSocket (int port, int backlog, InetAddress ifAddress)

Returns a server socket bound to the specified port, with a specified listen backlog and local IP. The ifAddress argument can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses. If ifAddress is null, it will accept connections on all local addresses. The socket is configured with the socket options (such as accept timeout) given to this factory.

Parameters
port the port to listen to
backlog how many connections are queued
ifAddress the network interface address to use
Returns
  • the ServerSocket
Throws
IOException

public ServerSocket createServerSocket (int port, int backlog)

Returns a server socket bound to the specified port, and uses the specified connection backlog. The socket is configured with the socket options (such as accept timeout) given to this factory.

Parameters
port the port to listen to
backlog how many connections are queued
Returns
  • the ServerSocket
Throws
IOException

public ServerSocket createServerSocket ()

Returns an unbound server socket.

Returns
  • the unbound socket
Throws
IOException if the socket cannot be created

public String[] getDefaultCipherSuites ()

Returns the subset of the supported cipher suites which are enabled by default. These cipher suites all provide a minimum quality of service whereby the server authenticates itself (preventing person-in-the-middle attacks) and where traffic is encrypted to provide confidentiality.

Returns
  • array of the cipher suites enabled by default

public String[] getSupportedCipherSuites ()

Returns the names of the cipher suites which could be enabled for use on an SSL connection. Normally, only a subset of these will actually be enabled by default, since this list may include cipher suites which do not support the mutual authentication of servers and clients, or which do not protect data confidentiality. Servers may also need certain kinds of certificates to use certain cipher suites.

Returns
  • an array of cipher suite names