|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.net.ServerSocketFactory org.apache.tomcat.util.net.jsse.JSSESocketFactory
SSL server socket factory. It _requires_ a valid RSA key and JSSE.
Field Summary | |
protected boolean |
allowUnsafeLegacyRenegotiation
|
protected java.lang.String |
clientAuth
|
protected java.lang.String[] |
enabledCiphers
|
protected boolean |
initialized
|
protected static boolean |
RFC_5746_SUPPORTED
|
protected javax.net.ssl.SSLServerSocketFactory |
sslProxy
|
Fields inherited from class org.apache.tomcat.util.net.ServerSocketFactory |
attributes |
Constructor Summary | |
JSSESocketFactory()
|
Method Summary | |
java.net.Socket |
acceptSocket(java.net.ServerSocket socket)
Wrapper function for accept(). |
protected void |
checkConfig()
Checks that the certificate is compatible with the enabled cipher suites. |
protected abstract void |
configureClientAuth(javax.net.ssl.SSLServerSocket socket)
Configure Client authentication for this version of JSSE. |
protected abstract void |
configureClientAuth(javax.net.ssl.SSLSocket socket)
Configure Client authentication for this version of JSSE. |
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. |
protected java.lang.String[] |
getEnabledCiphers(java.lang.String requestedCiphers,
java.lang.String[] supportedCiphers)
|
protected abstract java.lang.String[] |
getEnabledProtocols(javax.net.ssl.SSLServerSocket socket,
java.lang.String requestedProtocols)
|
protected java.security.KeyStore |
getKeystore(java.lang.String type,
java.lang.String pass)
|
protected java.lang.String |
getKeystorePassword()
|
protected java.security.KeyStore |
getTrustStore(java.lang.String keystoreType)
|
void |
handshake(java.net.Socket sock)
Extra function to initiate the handshake. |
protected abstract 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 allowUnsafeLegacyRenegotiation
protected static final boolean RFC_5746_SUPPORTED
Constructor Detail |
public JSSESocketFactory()
Method Detail |
public java.net.ServerSocket createSocket(int port) throws java.io.IOException
ServerSocketFactory
createSocket
in class ServerSocketFactory
port
- the port to listen to
java.io.IOException
- for networking errorspublic java.net.ServerSocket createSocket(int port, int backlog) throws java.io.IOException
ServerSocketFactory
createSocket
in class ServerSocketFactory
port
- the port to listen tobacklog
- how many connections are queued
java.io.IOException
- for networking errorspublic java.net.ServerSocket createSocket(int port, int backlog, java.net.InetAddress ifAddress) throws java.io.IOException
ServerSocketFactory
createSocket
in class ServerSocketFactory
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to use
java.io.IOException
- for networking errorspublic java.net.Socket acceptSocket(java.net.ServerSocket socket) throws java.io.IOException
ServerSocketFactory
acceptSocket
in class ServerSocketFactory
java.io.IOException
public void handshake(java.net.Socket sock) throws java.io.IOException
ServerSocketFactory
handshake
in class ServerSocketFactory
java.io.IOException
protected java.lang.String[] getEnabledCiphers(java.lang.String requestedCiphers, java.lang.String[] supportedCiphers)
protected java.lang.String getKeystorePassword()
protected java.security.KeyStore getKeystore(java.lang.String type, java.lang.String pass) throws java.io.IOException
java.io.IOException
protected java.security.KeyStore getTrustStore(java.lang.String keystoreType) throws java.io.IOException
java.io.IOException
protected abstract java.lang.String[] getEnabledProtocols(javax.net.ssl.SSLServerSocket socket, java.lang.String requestedProtocols)
protected abstract void setEnabledProtocols(javax.net.ssl.SSLServerSocket socket, java.lang.String[] protocols)
socket
- the SSLServerSocket.protocols
- the protocols to use.protected abstract void configureClientAuth(javax.net.ssl.SSLServerSocket socket)
socket
- the SSLServerSocketprotected abstract void configureClientAuth(javax.net.ssl.SSLSocket socket)
socket
- the SSLSocketprotected void checkConfig() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |