java.lang.Object
org.elasticsearch.common.ssl.TrustEverythingConfig
- All Implemented Interfaces:
SslTrustConfig
A
SslTrustConfig that trusts all certificates. Used when SslVerificationMode.isCertificateVerificationEnabled() is
false.
This class cannot be used on FIPS-140 JVM as it has its own trust manager implementation.-
Field Details
-
TRUST_EVERYTHING
-
-
Method Details
-
getDependentFiles
- Specified by:
getDependentFilesin interfaceSslTrustConfig- Returns:
- A collection of files that are read by this config object.
The
SslTrustConfig.createTrustManager()method will read these files dynamically, so the behaviour of this trust config may change if any of these files are modified.
-
getConfiguredCertificates
- Specified by:
getConfiguredCertificatesin interfaceSslTrustConfig- Returns:
- A collection of
certificatesused by this config, excluding those shipped with the JDK
-
createTrustManager
- Specified by:
createTrustManagerin interfaceSslTrustConfig- Returns:
- A new
X509ExtendedTrustManager.
-
toString
-