Package com.rabbitmq.client
Class TrustEverythingTrustManager
- java.lang.Object
-
- com.rabbitmq.client.TrustEverythingTrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class TrustEverythingTrustManager extends Object implements X509TrustManager
Convenience class providing a default implementation ofX509TrustManager. 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 Constructor Description TrustEverythingTrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(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.X509Certificate[]getAcceptedIssuers()Always returns an empty array of X509Certificates.
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType)
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.- Specified by:
checkClientTrustedin interfaceX509TrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType)
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.- Specified by:
checkServerTrustedin interfaceX509TrustManager
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
Always returns an empty array of X509Certificates.- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
-