|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.util.net.ServerSocketFactory
org.jsslutils.extra.apachetomcat5.JSSLutilsJSSESocketFactory
public class JSSLutilsJSSESocketFactory
This socket factory is used by the jSSLutils SSLImplementation; it is derived from the default JSSESocketFactory provided with Tomcat 6. This is an example for using jSSLutils with Tomcat 6. It takes the same parameters as the default factory in Tomcat 6, with the addition of:
Field Summary | |
---|---|
protected String |
clientAuth
|
protected String[] |
enabledCiphers
|
protected boolean |
initialized
|
protected boolean |
requireClientAuth
Flag to state that we require client authentication. |
protected SSLServerSocketFactory |
sslProxy
|
protected boolean |
wantClientAuth
Flag to state that we would like client authentication. |
Fields inherited from class org.apache.tomcat.util.net.ServerSocketFactory |
---|
attributes |
Constructor Summary | |
---|---|
JSSLutilsJSSESocketFactory()
|
Method Summary | |
---|---|
Socket |
acceptSocket(ServerSocket socket)
|
protected void |
configureClientAuth(SSLServerSocket socket)
Configure Client authentication for this version of JSSE. |
protected void |
configureClientAuth(SSLSocket socket)
Configure Client authentication for this version of JSSE. |
ServerSocket |
createSocket(int port)
|
ServerSocket |
createSocket(int port,
int backlog)
|
ServerSocket |
createSocket(int port,
int backlog,
InetAddress ifAddress)
|
protected String[] |
getEnabledCiphers(String requestedCiphers,
String[] supportedCiphers)
|
protected String[] |
getEnabledProtocols(SSLServerSocket socket,
String requestedProtocols)
Determines the SSL protocol variants to be enabled. |
void |
handshake(Socket sock)
|
protected void |
setEnabledProtocols(SSLServerSocket socket,
String[] protocols)
Set the SSL protocol variants to be enabled. |
Methods inherited from class org.apache.tomcat.util.net.ServerSocketFactory |
---|
getDefault, initSocket, setAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean initialized
protected String clientAuth
protected SSLServerSocketFactory sslProxy
protected String[] enabledCiphers
protected boolean requireClientAuth
protected boolean wantClientAuth
Constructor Detail |
---|
public JSSLutilsJSSESocketFactory()
Method Detail |
---|
public ServerSocket createSocket(int port) throws IOException
createSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
IOException
public ServerSocket createSocket(int port, int backlog) throws IOException
createSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
IOException
public ServerSocket createSocket(int port, int backlog, InetAddress ifAddress) throws IOException
createSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
IOException
public Socket acceptSocket(ServerSocket socket) throws IOException
acceptSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
IOException
public void handshake(Socket sock) throws IOException
handshake
in class org.apache.tomcat.util.net.ServerSocketFactory
IOException
protected String[] getEnabledCiphers(String requestedCiphers, String[] supportedCiphers)
protected void setEnabledProtocols(SSLServerSocket socket, String[] protocols)
socket
- the SSLServerSocket.protocols
- the protocols to use.protected String[] getEnabledProtocols(SSLServerSocket socket, String requestedProtocols)
socket
- The socket to get supported list from.requestedProtocols
- Comma-separated list of requested SSL protocol variants
protected void configureClientAuth(SSLServerSocket socket)
socket
- the SSLServerSocketprotected void configureClientAuth(SSLSocket socket)
socket
- the SSLSocket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |