public class SSLTestConfig
extends org.apache.solr.client.solrj.embedded.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 |
cleanStatics() |
org.apache.solr.client.solrj.impl.HttpClientConfigurer |
getHttpClientConfigurer()
Will provide an HttpClientConfigurer for SSL support (adds https and
removes http schemes) is SSL is enabled, otherwise return the default
configurer
|
public static File TEST_KEYSTORE
public SSLTestConfig()
public SSLTestConfig(boolean useSSL, boolean clientAuth)
public org.apache.solr.client.solrj.impl.HttpClientConfigurer getHttpClientConfigurer()
protected SSLContext buildSSLContext() throws KeyManagementException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException
public static void cleanStatics()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.