SSLServerSocketFactory


SSLServerSocketFactory javax.net.ssl

Java 1.4

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( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net