org.globus.gsi.tomcat
Class GlobusSSLSocketFactory

java.lang.Object
  extended by org.apache.tomcat.util.net.ServerSocketFactory
      extended by org.apache.tomcat.util.net.jsse.JSSESocketFactory
          extended by org.globus.gsi.tomcat.GlobusSSLSocketFactory
All Implemented Interfaces:
java.lang.Cloneable

public class GlobusSSLSocketFactory
extends org.apache.tomcat.util.net.jsse.JSSESocketFactory

This extends the standard JSSE to support the globus trust manager and all of the associated properties: CRLs, SigningPolicies, proxy certificates.

Since:
1.0
Version:
1.0

Field Summary
 
Fields inherited from class org.apache.tomcat.util.net.jsse.JSSESocketFactory
allowUnsafeLegacyRenegotiation, clientAuth, enabledCiphers, initialized, requireClientAuth, sslProxy, wantClientAuth
 
Fields inherited from class org.apache.tomcat.util.net.ServerSocketFactory
attributes
 
Constructor Summary
GlobusSSLSocketFactory()
           
 
Method Summary
protected  java.lang.Object clone()
           
 java.net.ServerSocket createSocket(int port)
           
 java.net.ServerSocket createSocket(int port, int backlog)
           
 java.net.ServerSocket createSocket(int port, int backlog, java.net.InetAddress ifAddress)
           
protected  javax.net.ssl.TrustManager[] getTrustManagers(java.lang.String keystoreType, java.lang.String keystoreProvider, java.lang.String algorithm)
          Create a Globus trust manager which supports proxy certificates.
 
Methods inherited from class org.apache.tomcat.util.net.jsse.JSSESocketFactory
acceptSocket, configureClientAuth, configureClientAuth, getCRLs, getEnabledCiphers, getEnabledProtocols, getKeyManagers, getKeystore, getKeystorePassword, getParameters, getTrustStore, handshake, setEnabledProtocols
 
Methods inherited from class org.apache.tomcat.util.net.ServerSocketFactory
getDefault, initSocket, setAttribute
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobusSSLSocketFactory

public GlobusSSLSocketFactory()
Method Detail

getTrustManagers

protected javax.net.ssl.TrustManager[] getTrustManagers(java.lang.String keystoreType,
                                                        java.lang.String keystoreProvider,
                                                        java.lang.String algorithm)
                                                 throws java.lang.Exception
Create a Globus trust manager which supports proxy certificates. This requires that the CRL store, and signing policy store be configured.

Overrides:
getTrustManagers in class org.apache.tomcat.util.net.jsse.JSSESocketFactory
Parameters:
keystoreType - The type of keystore to create.
keystoreProvider - The keystore provider to use.
algorithm - The keystore algorithm.
Returns:
A set of configured TrustManagers.
Throws:
java.lang.Exception - If we cannot create the trust managers.

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

createSocket

public java.net.ServerSocket createSocket(int port,
                                          int backlog,
                                          java.net.InetAddress ifAddress)
                                   throws java.io.IOException
Overrides:
createSocket in class org.apache.tomcat.util.net.jsse.JSSESocketFactory
Throws:
java.io.IOException

createSocket

public java.net.ServerSocket createSocket(int port,
                                          int backlog)
                                   throws java.io.IOException
Overrides:
createSocket in class org.apache.tomcat.util.net.jsse.JSSESocketFactory
Throws:
java.io.IOException

createSocket

public java.net.ServerSocket createSocket(int port)
                                   throws java.io.IOException
Overrides:
createSocket in class org.apache.tomcat.util.net.jsse.JSSESocketFactory
Throws:
java.io.IOException