Class SSLConfig
java.lang.Object
org.apache.solr.client.solrj.jetty.SSLConfig
Encapsulates settings related to SSL Configuration. NOTE: all other settings are ignored if
isSSLMode() is false.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.util.ssl.SslContextFactory.Clientorg.eclipse.jetty.util.ssl.SslContextFactory.ServerReturns 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.booleanbooleanAll other settings on this object are ignored unless this is truevoidsetClientAuth(boolean clientAuth) voidsetUseSSL(boolean useSsl)
-
Constructor Details
-
Method Details
-
setUseSSL
public void setUseSSL(boolean useSsl) -
setClientAuth
public void setClientAuth(boolean clientAuth) -
isSSLMode
public boolean isSSLMode()All other settings on this object are ignored unless this is true -
isClientAuthMode
public boolean isClientAuthMode() -
getKeyStore
-
getKeyStorePassword
-
getTrustStore
-
getTrustStorePassword
-
createContextFactory
public 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
public 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.
- See Also:
-
createClientContextFactory
public org.eclipse.jetty.util.ssl.SslContextFactory.Client createClientContextFactory()
-