Package javax.net.ssl
Class SSLServerSocketFactory
- java.lang.Object
-
- javax.net.ServerSocketFactory
-
- javax.net.ssl.SSLServerSocketFactory
-
public abstract class SSLServerSocketFactory extends ServerSocketFactory
SSLServerSocketFactorys createSSLServerSockets.- Since:
- 1.4
- See Also:
SSLSocket,SSLServerSocket
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSSLServerSocketFactory()Constructor is used only by subclasses.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerSocketFactorygetDefault()Returns the default SSL server socket factory.-
Methods inherited from class javax.net.ServerSocketFactory
createServerSocket, createServerSocket, createServerSocket, createServerSocket
-
-
-
-
Method Detail
-
getDefault
public static 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:
- the default
ServerSocketFactory - See Also:
SSLContext.getDefault()
-
-