Interface ExtensibleTrustManager

All Superinterfaces:
TrustManager

@NonNullByDefault public interface ExtensibleTrustManager extends TrustManager
Provides an extensible composite TrustManager The trust manager can be extended with implementations of the following interfaces: - TlsTrustManagerProvider - TlsCertificateProvider
Author:
Martin van Wingerden - Initial contribution
  • Method Details

    • addTlsCertificateProvider

      void addTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
      Add a TlsCertificateProvider to be used by HttpClient / WebSocket Client's When the Provider is no longer valid please make sure to remove it.
      Parameters:
      tlsCertificateProvider - same instance as given when removing
    • removeTlsCertificateProvider

      void removeTlsCertificateProvider(TlsCertificateProvider tlsCertificateProvider)
      Remove a TlsCertificateProvider so it will longer be used by HttpClient / WebSocket Client's
      Parameters:
      tlsCertificateProvider - same instance as given when adding
    • addTlsTrustManagerProvider

      void addTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
      Add a TlsTrustManagerProvider to be used by HttpClient / WebSocket Client's When the Provider is no longer valid please make sure to remove it.
      Parameters:
      tlsTrustManagerProvider - same instance as given when removing
    • removeTlsTrustManagerProvider

      void removeTlsTrustManagerProvider(TlsTrustManagerProvider tlsTrustManagerProvider)
      Remove a TlsTrustManagerProvider so it will longer be used by HttpClient / WebSocket Client's
      Parameters:
      tlsTrustManagerProvider - same instance as given when adding