Example usage for org.apache.solr.client.solrj.embedded SSLConfig SSLConfig

List of usage examples for org.apache.solr.client.solrj.embedded SSLConfig SSLConfig

Introduction

In this page you can find the example usage for org.apache.solr.client.solrj.embedded SSLConfig SSLConfig.

Prototype

public SSLConfig(boolean useSSL, boolean clientAuth, String keyStore, String keyStorePassword,
        String trustStore, String trustStorePassword) 

Source Link

Document

NOTE: all other settings are ignored if useSSL is false; trustStore settings are ignored if clientAuth is false

Usage

From source file:org.apache.camel.component.solr.JettySolrFactory.java

License:Apache License

private static SSLConfig buildSSLConfig(boolean useSsl, boolean sslClientAuth) {
    SSLConfig sslConfig = new SSLConfig(useSsl, false, TEST_KEYSTORE_PATH, TEST_KEYSTORE_PASSWORD,
            TEST_KEYSTORE_PATH, TEST_KEYSTORE_PASSWORD);
    return sslConfig;
}