Package com.rabbitmq.client
Class TrustEverythingTrustManager
- java.lang.Object
-
- com.rabbitmq.client.TrustEverythingTrustManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager
,javax.net.ssl.X509TrustManager
public class TrustEverythingTrustManager extends java.lang.Object implements javax.net.ssl.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 void
checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.void
checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.java.security.cert.X509Certificate[]
getAcceptedIssuers()
Always returns an empty array of X509Certificates.
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.- Specified by:
checkClientTrusted
in interfacejavax.net.ssl.X509TrustManager
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
Doesn't even bother looking at its arguments, simply returns, which makes the check succeed.- Specified by:
checkServerTrusted
in interfacejavax.net.ssl.X509TrustManager
-
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
Always returns an empty array of X509Certificates.- Specified by:
getAcceptedIssuers
in interfacejavax.net.ssl.X509TrustManager
-
-