Package org.apache.camel.support.jsse
Class TrustAllTrustManager
java.lang.Object
org.apache.camel.support.jsse.TrustAllTrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
A TrustManager that accepts all X509 certificates without any validation.
WARNING: This implementation should only be used in a controlled environment, such as testing or development, as it completely bypasses SSL certificate verification. Using this in production can expose the application to man-in-the-middle attacks.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] certs, String authType) void
checkServerTrusted
(X509Certificate[] certs, String authType)
-
Field Details
-
INSTANCE
-
-
Method Details
-
checkClientTrusted
- Specified by:
checkClientTrusted
in interfaceX509TrustManager
-
checkServerTrusted
- Specified by:
checkServerTrusted
in interfaceX509TrustManager
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-