public class SSLTestConfig extends SSLConfig
Modifier and Type | Field and Description |
---|---|
static File |
TEST_KEYSTORE |
Constructor and Description |
---|
SSLTestConfig() |
SSLTestConfig(boolean useSSL,
boolean clientAuth) |
SSLTestConfig(boolean useSSL,
boolean clientAuth,
String keyStore,
String keyStorePassword,
String trustStore,
String trustStorePassword) |
Modifier and Type | Method and Description |
---|---|
protected static KeyStore |
buildKeyStore(String keyStoreLocation,
String password) |
protected SSLContext |
buildSSLContext()
Builds a new SSLContext with the given configuration and allows the uses of
self-signed certificates during testing.
|
static void |
clearSSLSystemProperties() |
HttpClientConfigurer |
getHttpClientConfigurer()
Will provide an HttpClientConfigurer for SSL support (adds https and
removes http schemes) is SSL is enabled, otherwise return the default
configurer
|
static void |
setSSLSystemProperties() |
createContextFactory, getKeyStore, getKeyStorePassword, getTrustStore, getTrustStorePassword, isClientAuthMode, isSSLMode, setClientAuth, setUseSSL
public static File TEST_KEYSTORE
public SSLTestConfig()
public SSLTestConfig(boolean useSSL, boolean clientAuth)
public HttpClientConfigurer getHttpClientConfigurer()
protected SSLContext buildSSLContext() throws KeyManagementException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException
public static void setSSLSystemProperties()
public static void clearSSLSystemProperties()
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.