APIdia Launch Partner
Top Description Inners Constructors Methods
javax.net.ssl

public abstract Class SSLServerSocketFactory

Additional top-level class in compilation unit: DefaultSSLServerSocketFactory.

extends ServerSocketFactory
Class Inheritance
Known Direct Subclasses
javax.net.ssl.DefaultSSLServerSocketFactory, sun.security.ssl.SSLServerSocketFactoryImpl
Imports
java.io.IOException, java.net.InetAddress, .ServerSocket, .SocketException, javax.net.ServerSocketFactory, java.security.*

SSLServerSocketFactorys create SSLServerSockets.
Author
David Brownell
Since
1.4
See Also
SSLSocket, SSLServerSocket

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
SSLServerSocketFactory()

Constructor is used only by subclasses.

Method Summary

Modifier and TypeMethod and Description
public static ServerSocketFactory

Returns:

the default ServerSocketFactory
getDefault
()

Hides javax.net.ServerSocketFactory.getDefault.

Returns the default SSL server socket factory.

public abstract String[]

Returns:

array of the cipher suites enabled by default
getDefaultCipherSuites
()

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

public abstract String[]

Returns:

an array of cipher suite names
getSupportedCipherSuites
()

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

Inherited from javax.net.ServerSocketFactory:
createServerSocketcreateServerSocketcreateServerSocketcreateServerSocket

Constructor Detail

SSLServerSocketFactoryback to summary
protected SSLServerSocketFactory()

Constructor is used only by subclasses.

Method Detail

getDefaultback to summary
public static ServerSocketFactory getDefault()

Hides javax.net.ServerSocketFactory.getDefault.

Returns the default SSL server socket factory.

The first time this method is called, the security property "ssl.ServerSocketFactory.provider" is examined. If it is non-null, a class by that name is loaded and instantiated. If that is successful and the object is an instance of SSLServerSocketFactory, it is made the default SSL server socket factory.

Otherwise, this method returns SSLContext.getDefault().getServerSocketFactory(). If that call fails, an inoperative factory is returned.

Returns:ServerSocketFactory

the default ServerSocketFactory

See Also
SSLContext#getDefault
getDefaultCipherSuitesback to summary
public abstract String[] 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.

Returns:String[]

array of the cipher suites enabled by default

External Specification
Java Security Standard Algorithm Names
See Also
getSupportedCipherSuites()
getSupportedCipherSuitesback to summary
public abstract String[] 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.

Returns:String[]

an array of cipher suite names

External Specification
Java Security Standard Algorithm Names
See Also
getDefaultCipherSuites()
javax.net.ssl back to summary

private final Class SSLServerSocketFactory.DefaultFactoryHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final SSLServerSocketFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
log(String msg)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultFactoryback to summary
private static final SSLServerSocketFactory defaultFactory

Constructor Detail

DefaultFactoryHolderback to summary
private DefaultFactoryHolder()

Method Detail

logback to summary
private static void log(String msg)