APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.ssl

public final Class SSLServerSocketFactoryImpl

extends SSLServerSocketFactory
Class Inheritance
Imports
java.io.IOException, java.net.InetAddress, .ServerSocket, javax.net.ssl.SSLServerSocketFactory

This class creates SSL server sockets.
Author
David Brownell

Field Summary

Modifier and TypeField and Description
private final SSLContextImpl
private static final int

Constructor Summary

AccessConstructor and Description
public
SSLServerSocketFactoryImpl()

Constructor used to instantiate the default factory.

pack-priv
SSLServerSocketFactoryImpl(SSLContextImpl context)

Called from SSLContextImpl's getSSLServerSocketFactory().

Method Summary

Modifier and TypeMethod and Description
public ServerSocket

Returns:

the unbound socket
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 subset of the supported cipher suites which are enabled by default.

public String[]

Returns:

an array of cipher suite names
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.

Inherited from javax.net.ssl.SSLServerSocketFactory:
getDefault

Field Detail

contextback to summary
private final SSLContextImpl context
DEFAULT_BACKLOGback to summary
private static final int DEFAULT_BACKLOG

Constructor Detail

SSLServerSocketFactoryImplback to summary
public SSLServerSocketFactoryImpl() throws Exception

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.

SSLServerSocketFactoryImplback to summary
pack-priv SSLServerSocketFactoryImpl(SSLContextImpl context)

Called from SSLContextImpl's getSSLServerSocketFactory().

Method Detail

createServerSocketback to summary
public ServerSocket createServerSocket() throws IOException

Overrides javax.net.ServerSocketFactory.createServerSocket.

Returns an unbound server socket.

Returns:ServerSocket

the unbound socket

Annotations
@Override
Exceptions
IOException:
if the socket cannot be created
See Also
java.net.Socket#bind(java.net.SocketAddress)
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.

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.

Annotations
@Override
getSupportedCipherSuitesback to summary
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. 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:String[]

an array of cipher suite names

Annotations
@Override