java.lang.Object
org.elasticsearch.common.ssl.DefaultJdkTrustConfig
- All Implemented Interfaces:
SslTrustConfig
This class represents a trust configuration that corresponds to the default trusted CAs of the JDK
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanCollection<? extends StoredCertificate> inthashCode()booleantoString()
-
Field Details
-
DEFAULT_INSTANCE
-
-
Method Details
-
isSystemDefault
public boolean isSystemDefault()- Specified by:
isSystemDefaultin interfaceSslTrustConfig- Returns:
trueif this trust config is based on the system default truststore
-
createTrustManager
- Specified by:
createTrustManagerin interfaceSslTrustConfig- Returns:
- A new
X509ExtendedTrustManager.
-
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
-
toString
-
equals
-
hashCode
public int hashCode()
-