org.apache.solr.util
Class SSLTestConfig

java.lang.Object
  extended by org.apache.solr.client.solrj.embedded.SSLConfig
      extended by org.apache.solr.util.SSLTestConfig

public class SSLTestConfig
extends org.apache.solr.client.solrj.embedded.SSLConfig


Field Summary
static File TEST_KEYSTORE
           
 
Constructor Summary
SSLTestConfig()
           
SSLTestConfig(boolean useSSL, boolean clientAuth)
           
SSLTestConfig(boolean useSSL, boolean clientAuth, String keyStore, String keyStorePassword, String trustStore, String trustStorePassword)
           
 
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
 

Field Detail

TEST_KEYSTORE

public static File TEST_KEYSTORE
Constructor Detail

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)
Method Detail

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.