Interface SslTrustConfig

All Known Implementing Classes:
CompositeTrustConfig, DefaultJdkTrustConfig, PemTrustConfig, StoreTrustConfig, TrustEverythingConfig

public interface SslTrustConfig
An interface for building a trust manager at runtime. The method for constructing the trust manager is implementation dependent.
  • Method Details

    • getDependentFiles

      Collection<Path> getDependentFiles()
      Returns:
      A collection of files that are read by this config object. The createTrustManager() method will read these files dynamically, so the behaviour of this trust config may change if any of these files are modified.
    • createTrustManager

      X509ExtendedTrustManager createTrustManager()
      Returns:
      A new X509ExtendedTrustManager.
      Throws:
      SslConfigException - if there is a problem configuring the trust manager.
    • getConfiguredCertificates

      Collection<? extends StoredCertificate> getConfiguredCertificates()
      Returns:
      A collection of certificates used by this config, excluding those shipped with the JDK
    • isSystemDefault

      default boolean isSystemDefault()
      Returns:
      true if this trust config is based on the system default truststore