Class SSLConfigurations
- java.lang.Object
-
- org.apache.solr.util.configuration.SSLConfigurations
-
public class SSLConfigurations extends Object
Dedicated object to handle Solr configurations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SSLConfigurations.SysProps
-
Field Summary
Fields Modifier and Type Field Description protected List<SSLCredentialProvider>
credentialProviders
static String
DEFAULT_STORE_PASSWORD
-
Constructor Summary
Constructors Constructor Description SSLConfigurations(List<SSLCredentialProvider> credentialProviders)
SSLConfigurations(SSLCredentialProviderFactory sslCredentialProviderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientKeyStorePassword()
String
getClientTrustStorePassword()
String
getKeyStorePassword()
protected String
getPassword(SSLCredentialProvider.CredentialType type)
String
getTrustStorePassword()
void
init()
Initiates javax.net.ssl.* system properties from the proper sources.
-
-
-
Field Detail
-
DEFAULT_STORE_PASSWORD
public static final String DEFAULT_STORE_PASSWORD
- See Also:
- Constant Field Values
-
credentialProviders
protected final List<SSLCredentialProvider> credentialProviders
-
-
Constructor Detail
-
SSLConfigurations
public SSLConfigurations(SSLCredentialProviderFactory sslCredentialProviderFactory)
- Parameters:
sslCredentialProviderFactory
- Credential provider factory to use for providers
-
SSLConfigurations
public SSLConfigurations(List<SSLCredentialProvider> credentialProviders)
- Parameters:
credentialProviders
- Explicit list of credential providers to use
-
-
Method Detail
-
init
public void init()
Initiates javax.net.ssl.* system properties from the proper sources.
-
getKeyStorePassword
public String getKeyStorePassword()
- Returns:
- password for keystore used for SSL connections
-
getTrustStorePassword
public String getTrustStorePassword()
- Returns:
- password for truststore used for SSL connections
-
getClientKeyStorePassword
public String getClientKeyStorePassword()
- Returns:
- password for keystore used for SSL client connections
-
getClientTrustStorePassword
public String getClientTrustStorePassword()
- Returns:
- password for truststore used for SSL client connections
-
getPassword
protected String getPassword(SSLCredentialProvider.CredentialType type)
-
-