Class UnsafeX509ExtendedTrustManager

java.lang.Object
javax.net.ssl.X509ExtendedTrustManager
nl.altindag.ssl.trustmanager.UnsafeX509ExtendedTrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public final class UnsafeX509ExtendedTrustManager extends X509ExtendedTrustManager
An insecure TrustManager that trusts all X.509 certificates without any verification.

NOTE: Never use this UnsafeX509ExtendedTrustManager in production. It is purely for testing purposes, and thus it is very insecure.


Suppressed warning: java:S4830 - "Server certificates should be verified during SSL/TLS connections" This TrustManager doesn't validate certificates and should not be used at production. It is just meant to be used for testing purposes and it is designed not to verify server certificates.


NOTE: Please don't use this class directly as it is part of the internal API. Class name and methods can be changed any time. Instead use the TrustManagerUtils which provides the same functionality while it has a stable API because it is part of the public API.