public abstract class SSLServerSocketFactory extends ServerSocketFactory
SSLServerSocketFactory
s create SSLServerSocket
s.SSLSocket
,
SSLServerSocket
Modifier | Constructor and Description |
---|---|
protected |
SSLServerSocketFactory()
Constructor is used only by subclasses.
|
Modifier and Type | Method and Description |
---|---|
static ServerSocketFactory |
getDefault()
Returns the default SSL server socket factory.
|
createServerSocket, createServerSocket, createServerSocket, createServerSocket
protected SSLServerSocketFactory()
public static ServerSocketFactory getDefault()
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.
ServerSocketFactory
SSLContext.getDefault()