|
||||||||||
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.apachetomcat6.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 java.lang.String |
clientAuth
|
protected java.lang.String[] |
enabledCiphers
|
protected boolean |
initialized
|
protected boolean |
requireClientAuth
Flag to state that we require client authentication. |
protected javax.net.ssl.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 | |
---|---|
java.net.Socket |
acceptSocket(java.net.ServerSocket socket)
|
protected void |
configureClientAuth(javax.net.ssl.SSLServerSocket socket)
Configure Client authentication for this version of JSSE. |
protected void |
configureClientAuth(javax.net.ssl.SSLSocket socket)
Configure Client authentication for this version of JSSE. |
java.net.ServerSocket |
createSocket(int port)
|
java.net.ServerSocket |
createSocket(int port,
int backlog)
|
java.net.ServerSocket |
createSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
|
protected java.lang.String[] |
getEnabledCiphers(java.lang.String requestedCiphers,
java.lang.String[] supportedCiphers)
|
protected java.lang.String[] |
getEnabledProtocols(javax.net.ssl.SSLServerSocket socket,
java.lang.String requestedProtocols)
Determines the SSL protocol variants to be enabled. |
void |
handshake(java.net.Socket sock)
|
protected void |
setEnabledProtocols(javax.net.ssl.SSLServerSocket socket,
java.lang.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 java.lang.String clientAuth
protected javax.net.ssl.SSLServerSocketFactory sslProxy
protected java.lang.String[] enabledCiphers
protected boolean requireClientAuth
protected boolean wantClientAuth
Constructor Detail |
---|
public JSSLutilsJSSESocketFactory()
Method Detail |
---|
public java.net.ServerSocket createSocket(int port) throws java.io.IOException
createSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
java.io.IOException
public java.net.ServerSocket createSocket(int port, int backlog) throws java.io.IOException
createSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
java.io.IOException
public java.net.ServerSocket createSocket(int port, int backlog, java.net.InetAddress ifAddress) throws java.io.IOException
createSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
java.io.IOException
public java.net.Socket acceptSocket(java.net.ServerSocket socket) throws java.io.IOException
acceptSocket
in class org.apache.tomcat.util.net.ServerSocketFactory
java.io.IOException
public void handshake(java.net.Socket sock) throws java.io.IOException
handshake
in class org.apache.tomcat.util.net.ServerSocketFactory
java.io.IOException
protected java.lang.String[] getEnabledCiphers(java.lang.String requestedCiphers, java.lang.String[] supportedCiphers)
protected void setEnabledProtocols(javax.net.ssl.SSLServerSocket socket, java.lang.String[] protocols)
socket
- the SSLServerSocket.protocols
- the protocols to use.protected java.lang.String[] getEnabledProtocols(javax.net.ssl.SSLServerSocket socket, java.lang.String requestedProtocols)
socket
- The socket to get supported list from.requestedProtocols
- Comma-separated list of requested SSL protocol variants
protected void configureClientAuth(javax.net.ssl.SSLServerSocket socket)
socket
- the SSLServerSocketprotected void configureClientAuth(javax.net.ssl.SSLSocket socket)
socket
- the SSLSocket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |