FileDocCategorySizeDatePackage
JSSEImplementation.javaAPI DocGlassfish v2 API4446Fri Jun 15 01:54:56 BST 2007org.apache.tomcat.util.net.jsse

JSSEImplementation

public class JSSEImplementation extends org.apache.tomcat.util.net.SSLImplementation

Fields Summary
static final String
JSSE14Factory
static final String
SSLSocketClass
private JSSEFactory
factory
Constructors Summary
public JSSEImplementation()


        
        // Check to see if JSSE is floating around somewhere
        Class.forName(SSLSocketClass);
        if( JdkCompat.isJava14() ) {
            try {
                Class factcl = Class.forName(JSSE14Factory);           
                factory = (JSSEFactory)factcl.newInstance();
            } catch(Exception ex) {
                /* SJSAS 6439313
                factory = new JSSE13Factory();
                 
                if(logger.isDebugEnabled()) {
                    logger.debug("Error getting factory: " + JSSE14Factory, ex);
                }*/
                // START SJSAS 6439313
                throw new RuntimeException(ex);
                // END SJSAS 6439313
            }
        } else {
            /* SJSAS 6439313
            factory = new JSSE13Factory();
             **/
            // START SJSAS 6439313
            throw new RuntimeException("JDK 1.3 not supported");
            // END SJSAS 6439313
        }
    
Methods Summary
public java.lang.StringgetImplementationName()

      return "JSSE";
    
public org.apache.tomcat.util.net.SSLSupportgetSSLSupport(java.net.Socket s)

        SSLSupport ssls = factory.getSSLSupport(s);
        return ssls;
    
public org.apache.tomcat.util.net.SSLSupportgetSSLSupport(javax.net.ssl.SSLEngine sslEngine)

        return factory.getSSLSupport(sslEngine);
    
public org.apache.tomcat.util.net.ServerSocketFactorygetServerSocketFactory()

        ServerSocketFactory ssf = factory.getSocketFactory();
        return ssf;