org.apache.tomcat.util.net.jsse

Class JSSE14SocketFactory

Implemented Interfaces:
Cloneable

public class JSSE14SocketFactory
extends JSSESocketFactory

SSL server socket factory. It _requires_ a valid RSA key and JSSE.

Authors:
Harish Prabandham
Costin Manolache
Stefan Freyr Stefansson
EKR -- renamed to JSSESocketFactory
Jan Luehe

Field Summary

protected boolean
requireClientAuth
Flag to state that we require client authentication.
protected boolean
wantClientAuth
Flag to state that we would like client authentication.

Fields inherited from class org.apache.tomcat.util.net.jsse.JSSESocketFactory

clientAuth, enabledCiphers, initialized, sslProxy

Fields inherited from class org.apache.tomcat.util.net.ServerSocketFactory

attributes

Constructor Summary

JSSE14SocketFactory()
Constructor is used only by subclasses.

Method Summary

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.
protected String[]
getEnabledProtocols(SSLServerSocket socket, String requestedProtocols)
protected KeyManager[]
getKeyManagers(String keystoreType, String algorithm, String keyAlias)
Gets the initialized key managers.
protected TrustManager[]
getTrustManagers(String keystoreType, String algorithm)
Gets the intialized trust managers.
protected void
setEnabledProtocols(SSLServerSocket socket, String[] protocols)
Set the SSL protocol variants to be enabled.

Methods inherited from class org.apache.tomcat.util.net.jsse.JSSESocketFactory

acceptSocket, configureClientAuth, configureClientAuth, createSocket, createSocket, createSocket, getEnabledCiphers, getEnabledProtocols, getKeystore, getKeystorePassword, getTrustStore, handshake, setEnabledProtocols

Methods inherited from class org.apache.tomcat.util.net.ServerSocketFactory

acceptSocket, createSocket, createSocket, createSocket, getDefault, handshake, initSocket, setAttribute

Field Details

requireClientAuth

protected boolean requireClientAuth
Flag to state that we require client authentication.


wantClientAuth

protected boolean wantClientAuth
Flag to state that we would like client authentication.

Constructor Details

JSSE14SocketFactory

public JSSE14SocketFactory()
Constructor is used only by subclasses.

Method Details

configureClientAuth

protected void configureClientAuth(SSLServerSocket socket)
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'.
Overrides:
configureClientAuth in interface JSSESocketFactory

Parameters:
socket - the SSLServerSocket


configureClientAuth

protected void configureClientAuth(SSLSocket socket)
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'.
Overrides:
configureClientAuth in interface JSSESocketFactory

Parameters:


getEnabledProtocols

protected String[] getEnabledProtocols(SSLServerSocket socket,
                                       String requestedProtocols)
Overrides:
getEnabledProtocols in interface JSSESocketFactory


getKeyManagers

protected KeyManager[] getKeyManagers(String keystoreType,
                                      String algorithm,
                                      String keyAlias)
            throws Exception
Gets the initialized key managers.


getTrustManagers

protected TrustManager[] getTrustManagers(String keystoreType,
                                          String algorithm)
            throws Exception
Gets the intialized trust managers.


setEnabledProtocols

protected void setEnabledProtocols(SSLServerSocket socket,
                                   String[] protocols)
Set the SSL protocol variants to be enabled.
Overrides:
setEnabledProtocols in interface JSSESocketFactory

Parameters:
socket - the SSLServerSocket.
protocols - the protocols to use.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.