APIdia Launch Partner
Top Fields Constructors Methods
javax.net.ssl

pack-priv Class DefaultSSLServerSocketFactory

Located in compilation unit of javax.net.ssl.SSLServerSocketFactory.

extends SSLServerSocketFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Exception

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ServerSocket
createServerSocket()

Overrides javax.net.ServerSocketFactory.createServerSocket.

Returns an unbound server socket.

public ServerSocket
createServerSocket(int port)

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port.

public ServerSocket
createServerSocket(int port, int backlog)

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port, and uses the specified connection backlog.

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

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port, with a specified listen backlog and local IP.

public String[]
getDefaultCipherSuites()

Implements abstract javax.net.ssl.SSLServerSocketFactory.getDefaultCipherSuites.

Returns the list of cipher suites which are enabled by default.

public String[]
getSupportedCipherSuites()

Implements abstract javax.net.ssl.SSLServerSocketFactory.getSupportedCipherSuites.

Returns the names of the cipher suites which could be enabled for use on an SSL connection created by this factory.

private ServerSocket
Inherited from javax.net.ssl.SSLServerSocketFactory:
getDefault

Field Detail

reasonback to summary
private final Exception reason

Constructor Detail

DefaultSSLServerSocketFactoryback to summary
pack-priv DefaultSSLServerSocketFactory(Exception reason)

Method Detail

createServerSocketback to summary
public ServerSocket createServerSocket() throws IOException

Overrides javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

Returns an unbound server socket. The socket is configured with the socket options (such as accept timeout) given to this factory.

Annotations
@Override
Exceptions
IOException:
if the socket cannot be created
createServerSocketback to summary
public ServerSocket createServerSocket(int port) throws IOException

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

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.

Annotations
@Override
Exceptions
IOException:
for networking errors
createServerSocketback to summary
public ServerSocket createServerSocket(int port, int backlog) throws IOException

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

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.

The backlog argument must be a positive value greater than 0. If the value passed if equal or less than 0, then the default value will be assumed.

Annotations
@Override
Exceptions
IOException:
for networking errors
createServerSocketback to summary
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

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.

The backlog argument must be a positive value greater than 0. If the value passed if equal or less than 0, then the default value will be assumed.

Annotations
@Override
Exceptions
IOException:
for networking errors
getDefaultCipherSuitesback to summary
public String[] getDefaultCipherSuites()

Implements abstract javax.net.ssl.SSLServerSocketFactory.getDefaultCipherSuites.

Doc from javax.net.ssl.SSLServerSocketFactory.getDefaultCipherSuites.

Returns the list of cipher suites which are enabled by default. Unless a different list is enabled, handshaking on an SSL connection will use one of these cipher suites. The minimum quality of service for these defaults requires confidentiality protection and server authentication (that is, no anonymous cipher suites).

The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports.

Annotations
@Override
getSupportedCipherSuitesback to summary
public String[] getSupportedCipherSuites()

Implements abstract javax.net.ssl.SSLServerSocketFactory.getSupportedCipherSuites.

Doc from javax.net.ssl.SSLServerSocketFactory.getSupportedCipherSuites.

Returns the names of the cipher suites which could be enabled for use on an SSL connection created by this factory. Normally, only a subset of these will actually be enabled by default, since this list may include cipher suites which do not meet quality of service requirements for those defaults. Such cipher suites are useful in specialized applications.

The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports.

Annotations
@Override
throwExceptionback to summary
private ServerSocket throwException() throws SocketException