| java.lang.Object org.apache.tomcat.util.net.ServerSocketFactory org.apache.tomcat.util.net.jsse.JSSESocketFactory
JSSESocketFactory | public class JSSESocketFactory extends org.apache.tomcat.util.net.ServerSocketFactory (Code) | | SSL server socket factory. It _requires_ a valid RSA key and
JSSE.
author: Harish Prabandham author: Costin Manolache author: Stefan Freyr Stefansson author: EKR -- renamed to JSSESocketFactory author: Jan Luehe author: Bill Barker |
Method Summary | |
public 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. | public ServerSocket | createSocket(int port) | public ServerSocket | createSocket(int port, int backlog) | public ServerSocket | createSocket(int port, int backlog, InetAddress ifAddress) | protected Collection<? extends CRL> | getCRLs(String crlf) Load the collection of CRLs. | protected String[] | getEnabledCiphers(String requestedCiphers, String[] supportedCiphers) | protected String[] | getEnabledProtocols(SSLServerSocket socket, String requestedProtocols) Determines the SSL protocol variants to be enabled. | protected KeyManager[] | getKeyManagers(String keystoreType, String algorithm, String keyAlias) Gets the initialized key managers. | protected KeyStore | getKeystore(String type, String pass) | protected String | getKeystorePassword() | protected CertPathParameters | getParameters(String algorithm, String crlf, KeyStore trustStore) Return the initialization parameters for the TrustManager.
Currently, only the default PKIX is supported.
Parameters: algorithm - The algorithm to get parameters for. Parameters: crlf - The path to the CRL file. Parameters: trustStore - The configured TrustStore. | protected TrustManager[] | getTrustManagers(String keystoreType, String algorithm) Gets the intialized trust managers. | protected KeyStore | getTrustStore(String keystoreType) | public void | handshake(Socket sock) | void | init() Reads the keystore and initializes the SSL socket factory. | protected void | setEnabledProtocols(SSLServerSocket socket, String[] protocols) Set the SSL protocol variants to be enabled. |
defaultClientAuth | static boolean defaultClientAuth(Code) | | |
initialized | protected boolean initialized(Code) | | |
requireClientAuth | protected boolean requireClientAuth(Code) | | Flag to state that we require client authentication.
|
wantClientAuth | protected boolean wantClientAuth(Code) | | Flag to state that we would like client authentication.
|
JSSESocketFactory | public JSSESocketFactory()(Code) | | |
configureClientAuth | protected void configureClientAuth(SSLServerSocket socket)(Code) | | Configure Client authentication for this version of JSSE. The
JSSE included in Java 1.4 supports the 'want' value. Prior
versions of JSSE will treat 'want' as 'false'.
Parameters: socket - the SSLServerSocket |
configureClientAuth | protected void configureClientAuth(SSLSocket socket)(Code) | | Configure Client authentication for this version of JSSE. The
JSSE included in Java 1.4 supports the 'want' value. Prior
versions of JSSE will treat 'want' as 'false'.
Parameters: socket - the SSLSocket |
getEnabledProtocols | protected String[] getEnabledProtocols(SSLServerSocket socket, String requestedProtocols)(Code) | | Determines the SSL protocol variants to be enabled.
Parameters: socket - The socket to get supported list from. Parameters: requestedProtocols - Comma-separated list of requested SSLprotocol variants Array of SSL protocol variants to be enabled, or null if none ofthe requested protocol variants are supported |
getKeystorePassword | protected String getKeystorePassword()(Code) | | |
getParameters | protected CertPathParameters getParameters(String algorithm, String crlf, KeyStore trustStore) throws Exception(Code) | | Return the initialization parameters for the TrustManager.
Currently, only the default PKIX is supported.
Parameters: algorithm - The algorithm to get parameters for. Parameters: crlf - The path to the CRL file. Parameters: trustStore - The configured TrustStore. The parameters including the CRLs and TrustStore. |
init | void init() throws IOException(Code) | | Reads the keystore and initializes the SSL socket factory.
|
setEnabledProtocols | protected void setEnabledProtocols(SSLServerSocket socket, String[] protocols)(Code) | | Set the SSL protocol variants to be enabled.
Parameters: socket - the SSLServerSocket. Parameters: protocols - the protocols to use. |
|
|