org.apache.tomcat.util.net
Class SSLSocketFactory
java.lang.Object
|
+--org.apache.tomcat.util.net.ServerSocketFactory
|
+--org.apache.tomcat.util.net.SSLSocketFactory
- All Implemented Interfaces:
- java.lang.Cloneable
- public class SSLSocketFactory
- extends ServerSocketFactory
SSL server socket factory. It _requires_ a valid RSA key and
JSSE.
- Author:
- Harish Prabandham, Costin Manolache, Stefan Freyr Stefansson
Method Summary |
java.net.ServerSocket |
createSocket(int port)
Returns a server socket which uses all network interfaces on
the host, and is bound to a the specified port. |
java.net.ServerSocket |
createSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog. |
java.net.ServerSocket |
createSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
Returns a server socket which uses only the specified network
interface on the local host, is bound to a the specified port,
and uses the specified connection backlog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLSocketFactory
public SSLSocketFactory()
createSocket
public java.net.ServerSocket createSocket(int port)
throws java.io.IOException
- Description copied from class:
ServerSocketFactory
- Returns a server socket which uses all network interfaces on
the host, and is bound to a the specified port. The socket is
configured with the socket options (such as accept timeout)
given to this factory.
- Overrides:
createSocket
in class ServerSocketFactory
- Following copied from class:
org.apache.tomcat.util.net.ServerSocketFactory
- Parameters:
port
- the port to listen to- Throws:
java.io.IOException
- for networking errorsjava.lang.InstantiationException
- for construction errors
createSocket
public java.net.ServerSocket createSocket(int port,
int backlog)
throws java.io.IOException
- Description copied from class:
ServerSocketFactory
- Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog. The socket is configured with
the socket options (such as accept timeout) given to this factory.
- Overrides:
createSocket
in class ServerSocketFactory
- Following copied from class:
org.apache.tomcat.util.net.ServerSocketFactory
- Parameters:
port
- the port to listen tobacklog
- how many connections are queued- Throws:
java.io.IOException
- for networking errorsjava.lang.InstantiationException
- for construction errors
createSocket
public java.net.ServerSocket createSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
throws java.io.IOException
- Description copied from class:
ServerSocketFactory
- Returns a server socket which uses only the specified network
interface on the local host, is bound to a the specified port,
and uses the specified connection backlog. The socket is configured
with the socket options (such as accept timeout) given to this factory.
- Overrides:
createSocket
in class ServerSocketFactory
- Following copied from class:
org.apache.tomcat.util.net.ServerSocketFactory
- Parameters:
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to use- Throws:
java.io.IOException
- for networking errorsjava.lang.InstantiationException
- for construction errors
Copyright ?? 2001 Apache Software Foundation. All Rights Reserved.