org.apache.solr.util
Class SSLTestConfig
java.lang.Object
org.apache.solr.client.solrj.embedded.SSLConfig
org.apache.solr.util.SSLTestConfig
public class SSLTestConfig
- extends org.apache.solr.client.solrj.embedded.SSLConfig
Method Summary |
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 |
Methods inherited from class org.apache.solr.client.solrj.embedded.SSLConfig |
getKeyStore, getKeyStorePassword, getTrustStore, getTrustStorePassword, isClientAuthMode, isSSLMode, setClientAuth, setUseSSL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST_KEYSTORE
public static File TEST_KEYSTORE
SSLTestConfig
public SSLTestConfig()
SSLTestConfig
public SSLTestConfig(boolean useSSL,
boolean clientAuth)
SSLTestConfig
public SSLTestConfig(boolean useSSL,
boolean clientAuth,
String keyStore,
String keyStorePassword,
String trustStore,
String trustStorePassword)
getHttpClientConfigurer
public 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
buildSSLContext
protected SSLContext buildSSLContext()
throws KeyManagementException,
UnrecoverableKeyException,
NoSuchAlgorithmException,
KeyStoreException
- Builds a new SSLContext with the given configuration and allows the uses of
self-signed certificates during testing.
- Throws:
KeyManagementException
UnrecoverableKeyException
NoSuchAlgorithmException
KeyStoreException
buildKeyStore
protected static KeyStore buildKeyStore(String keyStoreLocation,
String password)
cleanStatics
public static void cleanStatics()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.