Class SSLConfig
- java.lang.Object
- 
- org.apache.solr.client.solrj.embedded.SSLConfig
 
- 
 public class SSLConfig extends Object Encapsulates settings related to SSL Configuration. NOTE: all other settings are ignored ifisSSLMode()is false.- See Also:
- setUseSSL(boolean)
 
- 
- 
Constructor SummaryConstructors Constructor Description SSLConfig(boolean useSsl, boolean clientAuth, String keyStore, String keyStorePassword, String trustStore, String trustStorePassword)NOTE: all other settings are ignored if useSsl is false; trustStore settings are ignored if clientAuth is false
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.util.ssl.SslContextFactory.ClientcreateClientContextFactory()org.eclipse.jetty.util.ssl.SslContextFactory.ServercreateContextFactory()Returns an SslContextFactory.Server that should be used by a jetty server based on this SSLConfig instance, or null if SSL should not be used.static org.eclipse.jetty.util.ssl.SslContextFactory.ServercreateContextFactory(SSLConfig sslConfig)Returns an SslContextFactory.Server that should be used by a jetty server based on the specified SSLConfig param which may be null.StringgetKeyStore()StringgetKeyStorePassword()StringgetTrustStore()StringgetTrustStorePassword()booleanisClientAuthMode()booleanisSSLMode()All other settings on this object are ignored unless this is truevoidsetClientAuth(boolean clientAuth)voidsetUseSSL(boolean useSsl)
 
- 
- 
- 
Method Detail- 
setUseSSLpublic void setUseSSL(boolean useSsl) 
 - 
setClientAuthpublic void setClientAuth(boolean clientAuth) 
 - 
isSSLModepublic boolean isSSLMode() All other settings on this object are ignored unless this is true
 - 
isClientAuthModepublic boolean isClientAuthMode() 
 - 
getKeyStorepublic String getKeyStore() 
 - 
getKeyStorePasswordpublic String getKeyStorePassword() 
 - 
getTrustStorepublic String getTrustStore() 
 - 
getTrustStorePasswordpublic String getTrustStorePassword() 
 - 
createContextFactorypublic static org.eclipse.jetty.util.ssl.SslContextFactory.Server createContextFactory(SSLConfig sslConfig) Returns an SslContextFactory.Server that should be used by a jetty server based on the specified SSLConfig param which may be null.if the SSLConfig param is non-null, then this method will return the results of createContextFactory().If the SSLConfig param is null, then this method will return null unless the tests.jettySslsystem property is true, in which case standard "javax.net.ssl.*" system properties will be used instead, along with "tests.jettySsl.clientAuth".- See Also:
- createContextFactory()
 
 - 
createContextFactorypublic org.eclipse.jetty.util.ssl.SslContextFactory.Server createContextFactory() Returns an SslContextFactory.Server that should be used by a jetty server based on this SSLConfig instance, or null if SSL should not be used.The default implementation generates a simple factory according to the keystore, truststore, and clientAuth properties of this object. 
 - 
createClientContextFactorypublic org.eclipse.jetty.util.ssl.SslContextFactory.Client createClientContextFactory() 
 
- 
 
-