com.canoo.webtest.security
Class AbstractConnectionInitializer

java.lang.Object
  extended by com.canoo.webtest.security.SecurityConstants
      extended by com.canoo.webtest.security.AbstractConnectionInitializer
All Implemented Interfaces:
IConnectionInitializer
Direct Known Subclasses:
SunJsseBaseConnectionInitializer

public abstract class AbstractConnectionInitializer
extends SecurityConstants
implements IConnectionInitializer

Author:
Carsten Seibert, Dierk Koenig

Field Summary
protected static String PROTOCOL_HANDLER_KEY
           
protected static String SUN_JSSE_PROVIDER_CLASS
           
protected static String SUN_SSL_PROTOCOL_HANDLER_PACKAGE
           
protected static String TRUST_STORE_KEY
           
protected static String TRUST_STORE_PASSWORD_KEY
           
 
Fields inherited from class com.canoo.webtest.security.SecurityConstants
PROPERTY_KEYSTORE_ALIAS, PROPERTY_KEYSTORE_FILE, PROPERTY_KEYSTORE_PASSPHRASE, PROPERTY_TRUSTSTORE_FILE, PROPERTY_TRUSTSTORE_PASSPHRASE
 
Constructor Summary
AbstractConnectionInitializer()
           
 
Method Summary
static String getExternalProperty(Configuration config, String propertyName)
           
protected static boolean hasProvider(Class providerClass)
           
protected static void installJsseProviderIfRequired(String providerClassName)
           
static boolean isProtocolHttps(Configuration config)
           
protected static void logProperty(Configuration config, String propertyName)
           
protected static void setSystemProperty(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.canoo.webtest.interfaces.IConnectionInitializer
initializeConnection
 

Field Detail

SUN_JSSE_PROVIDER_CLASS

protected static final String SUN_JSSE_PROVIDER_CLASS
See Also:
Constant Field Values

SUN_SSL_PROTOCOL_HANDLER_PACKAGE

protected static final String SUN_SSL_PROTOCOL_HANDLER_PACKAGE
See Also:
Constant Field Values

PROTOCOL_HANDLER_KEY

protected static final String PROTOCOL_HANDLER_KEY
See Also:
Constant Field Values

TRUST_STORE_KEY

protected static final String TRUST_STORE_KEY
See Also:
Constant Field Values

TRUST_STORE_PASSWORD_KEY

protected static final String TRUST_STORE_PASSWORD_KEY
See Also:
Constant Field Values
Constructor Detail

AbstractConnectionInitializer

public AbstractConnectionInitializer()
Method Detail

getExternalProperty

public static String getExternalProperty(Configuration config,
                                         String propertyName)

logProperty

protected static void logProperty(Configuration config,
                                  String propertyName)

isProtocolHttps

public static boolean isProtocolHttps(Configuration config)

hasProvider

protected static boolean hasProvider(Class providerClass)

installJsseProviderIfRequired

protected static void installJsseProviderIfRequired(String providerClassName)
                                             throws ConnectionInitializationException
Throws:
ConnectionInitializationException

setSystemProperty

protected static void setSystemProperty(String key,
                                        String value)

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.