KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > net > ssl > SSLServerSocketFactory


1 /*
2  * @(#)SSLServerSocketFactory.java 1.9 04/02/16
3  *
4  * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7   
8 /*
9  * NOTE:
10  * Because of various external restrictions (i.e. US export
11  * regulations, etc.), the actual source code can not be provided
12  * at this time. This file represents the skeleton of the source
13  * file, so that javadocs of the API can be created.
14  */

15
16 package javax.net.ssl;
17
18 import java.security.*;
19
20 import java.io.IOException;
21 import java.net.InetAddress;
22 import java.net.ServerSocket;
23 import java.net.SocketException;
24 import javax.net.ServerSocketFactory;
25 import com.sun.net.ssl.internal.ssl.Debug;
26 import com.sun.net.ssl.internal.ssl.ExportControl;
27
28 /**
29  * <code>SSLServerSocketFactory</code>s create
30  * <code>SSLServerSocket</code>s.
31  *
32  * @since 1.4
33  * @see SSLSocket
34  * @see SSLServerSocket
35  * @version 1.22
36  * @author David Brownell
37  */

38 public abstract class SSLServerSocketFactory extends ServerSocketFactory
39 {
40
41     /**
42      * Constructor is used only by subclasses.
43      */

44     protected SSLServerSocketFactory() { }
45
46     /**
47      * Returns the default SSL server socket factory.
48      * The default implementation can be changed by setting the value of the
49      * "ssl.ServerSocketFactory.provider" security property (in the Java
50      * security properties file) to the desired class.
51      *
52      * <p>If SSL has not been
53      * configured properly for this virtual machine, the factory will be
54      * inoperative (use of which will report instantiation exceptions).
55      *
56      * @return the default <code>ServerSocketFactory</code>
57      */

58     public static synchronized ServerSocketFactory getDefault() {
59         return null;
60     }
61
62     /**
63      * Returns the list of cipher suites which are enabled by default.
64      * Unless a different list is enabled, handshaking on an SSL connection
65      * will use one of these cipher suites. The minimum quality of service
66      * for these defaults requires confidentiality protection and server
67      * authentication (that is, no anonymous cipher suites).
68      *
69      * @see #getSupportedCipherSuites()
70      * @return array of the cipher suites enabled by default
71      */

72     public abstract String[] getDefaultCipherSuites();
73
74     /**
75      * Returns the names of the cipher suites which could be enabled for use
76      * on an SSL connection created by this factory.
77      * Normally, only a subset of these will actually
78      * be enabled by default, since this list may include cipher suites which
79      * do not meet quality of service requirements for those defaults. Such
80      * cipher suites are useful in specialized applications.
81      *
82      * @return an array of cipher suite names
83      * @see #getDefaultCipherSuites()
84      */

85     public abstract String[] getSupportedCipherSuites();
86 }
87
Popular Tags