public class SunJsseBaseConnectionInitializer extends AbstractConnectionInitializer
See also JSSE Reference
PROTOCOL_HANDLER_KEY, SUN_JSSE_PROVIDER_CLASS, SUN_SSL_PROTOCOL_HANDLER_PACKAGE, TRUST_STORE_KEY, TRUST_STORE_PASSWORD_KEY
PROPERTY_KEYSTORE_ALIAS, PROPERTY_KEYSTORE_FILE, PROPERTY_KEYSTORE_PASSPHRASE, PROPERTY_KEYSTORE_TYPE, PROPERTY_TRUSTSTORE_FILE, PROPERTY_TRUSTSTORE_PASSPHRASE
Constructor and Description |
---|
SunJsseBaseConnectionInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
initializeConnection(Configuration config)
Doing the initialization for https heavily relies on side effects in shared data, i.e.
|
protected void |
installHostnameVerifier(Configuration config)
Install a customized HostnameVerifier in order to handle mismatches between common name used in the certificate
and the actual hostname specified in the URL.
|
protected void |
installTrustAndKeyManager(Configuration config) |
protected void |
logProtocolConfiguration(Configuration config) |
getExternalProperty, hasProvider, installJsseProviderIfRequired, isProtocolHttps, logProperty, setSystemProperty
public void initializeConnection(Configuration config) throws ConnectionInitializationException
protected void installHostnameVerifier(Configuration config)
config
- The current test context.protected void installTrustAndKeyManager(Configuration config) throws ConnectionInitializationException
protected void logProtocolConfiguration(Configuration config)