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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.voidcheckServerTrusted(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:
checkClientTrustedin interfaceX509TrustManager
-
checkServerTrusted
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.- Specified by:
checkServerTrustedin interfaceX509TrustManager
-
getAcceptedIssuers
Always returns an empty array of X509Certificates.- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-