java.lang.Object
nl.altindag.ssl.util.TrustManagerUtils.TrustManagerBuilder
- Enclosing class:
TrustManagerUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final nl.altindag.sude.Loggerprivate booleanprivate booleanprivate booleanprivate Predicate<TrustManagerParameters> private final List<X509ExtendedTrustManager> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private X509ExtendedTrustManagercombine(List<X509ExtendedTrustManager> trustManagers) private Optional<X509ExtendedTrustManager> createEnhanceableTrustManagerIfEnabled(X509ExtendedTrustManager baseTrustManager) private Optional<X509ExtendedTrustManager> getUnsafeOrDummyTrustManagerIfConfigured(List<X509ExtendedTrustManager> trustManagers) withLoggingTrustManager(boolean loggingTrustManagerEnabled) withSwappableTrustManager(boolean swappableTrustManagerEnabled) withTrustEnhancer(boolean shouldTrustedCertificatesBeConcealed) withTrustEnhancer(Predicate<TrustManagerParameters> trustManagerParametersValidator) withTrustManager(T trustManager) withTrustManagers(List<T> trustManagers) withTrustManagers(T... trustManagers) <T extends KeyStore>
TrustManagerUtils.TrustManagerBuilderwithTrustStore(T trustStore) <T extends KeyStore>
TrustManagerUtils.TrustManagerBuilderwithTrustStore(T trustStore, String trustManagerAlgorithm) withTrustStores(List<? extends KeyStore> trustStores) <T extends KeyStore>
TrustManagerUtils.TrustManagerBuilderwithTrustStores(T... trustStores)
-
Field Details
-
LOGGER
private static final nl.altindag.sude.Logger LOGGER -
EMPTY_TRUST_MANAGER_EXCEPTION
- See Also:
-
trustManagers
-
swappableTrustManagerEnabled
private boolean swappableTrustManagerEnabled -
loggingTrustManagerEnabled
private boolean loggingTrustManagerEnabled -
trustManagerParametersValidator
-
shouldTrustedCertificatesBeConcealed
private boolean shouldTrustedCertificatesBeConcealed
-
-
Constructor Details
-
TrustManagerBuilder
private TrustManagerBuilder()
-
-
Method Details
-
withTrustManagers
public <T extends X509TrustManager> TrustManagerUtils.TrustManagerBuilder withTrustManagers(T... trustManagers) -
withTrustManagers
public <T extends X509TrustManager> TrustManagerUtils.TrustManagerBuilder withTrustManagers(List<T> trustManagers) -
withTrustManager
public <T extends X509TrustManager> TrustManagerUtils.TrustManagerBuilder withTrustManager(T trustManager) -
withTrustStores
-
withTrustStores
-
withTrustStore
-
withTrustStore
public <T extends KeyStore> TrustManagerUtils.TrustManagerBuilder withTrustStore(T trustStore, String trustManagerAlgorithm) -
withSwappableTrustManager
public TrustManagerUtils.TrustManagerBuilder withSwappableTrustManager(boolean swappableTrustManagerEnabled) -
withLoggingTrustManager
public TrustManagerUtils.TrustManagerBuilder withLoggingTrustManager(boolean loggingTrustManagerEnabled) -
withTrustEnhancer
public TrustManagerUtils.TrustManagerBuilder withTrustEnhancer(Predicate<TrustManagerParameters> trustManagerParametersValidator) -
withTrustEnhancer
public TrustManagerUtils.TrustManagerBuilder withTrustEnhancer(boolean shouldTrustedCertificatesBeConcealed) -
build
-
getUnsafeOrDummyTrustManagerIfConfigured
private Optional<X509ExtendedTrustManager> getUnsafeOrDummyTrustManagerIfConfigured(List<X509ExtendedTrustManager> trustManagers) -
combine
-
createEnhanceableTrustManagerIfEnabled
private Optional<X509ExtendedTrustManager> createEnhanceableTrustManagerIfEnabled(X509ExtendedTrustManager baseTrustManager)
-