Name
SSLServerSocketFactory
Synopsis
This class is a
javax.net.ServerSocketFactory
for creating SSLServerSocket
objects. Most
applications use the default
SSLServerSocketFactory
returned by the static
getDefault( )
method. Once this
SSLServerSocketFactory
has been obtained, they use
one of the inherited createServerSocket(
)
methods to create and optionally bind a new
SSLServerSocket
. The return value of the
createServerSocket( )
methods is a
java.net.ServerSocket
object, but you can safely
cast this object to a SSLServerSocket
if you need
to.
Applications that need to customize the SSL configuration and cannot
use the default server socket factory may obtain a custom
SSLServerSocketFactory
from an
SSLContext
, which is essentially a factory for
socket factories. See SSLContext
for details.
Figure 18-13. javax.net.ssl.SSLServerSocketFactory
public abstract class SSLServerSocketFactory extends javax.net.ServerSocketFactory { // Protected Constructors protected SSLServerSocketFactory( ); // Public Class Methods public static javax.net.ServerSocketFactory getDefault( ); synchronized // Public Instance Methods public abstract String[ ] getDefaultCipherSuites( ); public abstract String[ ] getSupportedCipherSuites( ); }
Returned By
SSLContext.getServerSocketFactory( )
,
SSLContextSpi.engineGetServerSocketFactory( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.