Package com.rabbitmq.client
Class TrustEverythingTrustManager
java.lang.Object
com.rabbitmq.client.TrustEverythingTrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
Convenience class providing a default implementation of
X509TrustManager
.
Trusts every single certificate presented to it. This implementation does not perform peer
verification and provides no protection against Man-in-the-Middle (MITM) attacks and therefore
only suitable for some development and QA environments.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] chain, String authType) Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.void
checkServerTrusted
(X509Certificate[] chain, String authType) Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.Always returns an empty array of X509Certificates.
-
Constructor Details
-
TrustEverythingTrustManager
public TrustEverythingTrustManager()
-
-
Method Details
-
checkClientTrusted
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.- Specified by:
checkClientTrusted
in interfaceX509TrustManager
-
checkServerTrusted
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.- Specified by:
checkServerTrusted
in interfaceX509TrustManager
-
getAcceptedIssuers
Always returns an empty array of X509Certificates.- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-