Package com.rabbitmq.client
Class NullTrustManager
java.lang.Object
com.rabbitmq.client.NullTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
Deprecated.
Convenience class providing a default implementation of javax.net.ssl.X509TrustManager.
Trusts every single certificate presented to it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) Deprecated.Trusts any client certificate: no verification is performed.voidcheckServerTrusted(X509Certificate[] chain, String authType) Deprecated.Trusts any server certificate: no verification is performed.Deprecated.
-
Constructor Details
-
NullTrustManager
public NullTrustManager()Deprecated.
-
-
Method Details
-
checkClientTrusted
Deprecated.Trusts any client certificate: no verification is performed. This class is insecure and must not be used in production; it is kept only for backward compatibility of explicitly-requested trust-all setups (see ConnectionFactory#useTlsWithNoVerification).- Specified by:
checkClientTrustedin interfaceX509TrustManager
-
checkServerTrusted
Deprecated.Trusts any server certificate: no verification is performed.- Specified by:
checkServerTrustedin interfaceX509TrustManager
-
getAcceptedIssuers
Deprecated.- Specified by:
getAcceptedIssuersin interfaceX509TrustManager- Returns:
- an empty array of X509Certificate
-