Package org.elasticsearch.common.ssl
Class SslConfiguration
java.lang.Object
org.elasticsearch.common.ssl.SslConfiguration
A object encapsulating all necessary configuration for an SSL context (client or server).
The configuration itself is immutable, but the
key config and
trust config may depend on reading key and certificate material
from files (see getDependentFiles(), and the content of those files may change.-
Constructor Summary
ConstructorsConstructorDescriptionSslConfiguration(SslTrustConfig trustConfig, SslKeyConfig keyConfig, SslVerificationMode verificationMode, SslClientAuthenticationMode clientAuth, List<String> ciphers, List<String> supportedProtocols) -
Method Summary
-
Constructor Details
-
SslConfiguration
public SslConfiguration(SslTrustConfig trustConfig, SslKeyConfig keyConfig, SslVerificationMode verificationMode, SslClientAuthenticationMode clientAuth, List<String> ciphers, List<String> supportedProtocols)
-
-
Method Details
-
getTrustConfig
-
getKeyConfig
-
getVerificationMode
-
getClientAuth
-
getCipherSuites
-
getSupportedProtocols
-
getDependentFiles
- Returns:
- A collection of files that are used by this SSL configuration. If the contents of these files change, then any
subsequent call to
createSslContext()(or similar methods) may create a context with different behaviour. It is recommended that these files be monitored for changes, and a new ssl-context is created whenever any of the files are modified.
-
createSslContext
Dynamically create a new SSL context based on the current state of the configuration. Because thekey configandtrust configmay change based on the contents of their referenced files (seegetDependentFiles(), consecutive calls to this method may return ssl-contexts with different configurations. -
toString
-
equals
-
hashCode
public int hashCode()
-