Team LiB
Previous Section Next Section

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

    Team LiB
    Previous Section Next Section