public class JSSLutilsJSSESocketFactory
extends org.apache.tomcat.util.net.ServerSocketFactory
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
JSSLutilsJSSESocketFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected boolean initialized
protected String clientAuth
protected SSLServerSocketFactory sslProxy
protected String[] enabledCiphers
protected boolean requireClientAuth
protected boolean wantClientAuth
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 variantsprotected void configureClientAuth(SSLServerSocket socket)
socket
- the SSLServerSocketprotected void configureClientAuth(SSLSocket socket)
socket
- the SSLSocketCopyright © 2013. All Rights Reserved.