org.apache.tomcat.util.net.jsse

Class JSSE13SocketFactory

Implemented Interfaces:
Cloneable

public class JSSE13SocketFactory
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
Bill Barker

Field Summary

protected boolean
clientAuth
Flag for 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

JSSE13SocketFactory()
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 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

clientAuth

protected boolean clientAuth
Flag for client authentication

Constructor Details

JSSE13SocketFactory

public JSSE13SocketFactory()
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


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.