Class NullTrustManager

java.lang.Object
com.rabbitmq.client.NullTrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager

@Deprecated public class NullTrustManager extends Object implements X509TrustManager
Deprecated.
Convenience class providing a default implementation of javax.net.ssl.X509TrustManager. Trusts every single certificate presented to it.
  • Constructor Details

    • NullTrustManager

      public NullTrustManager()
      Deprecated.
  • Method Details

    • checkClientTrusted

      public void checkClientTrusted(X509Certificate[] chain, String authType)
      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:
      checkClientTrusted in interface X509TrustManager
    • checkServerTrusted

      public void checkServerTrusted(X509Certificate[] chain, String authType)
      Deprecated.
      Trusts any server certificate: no verification is performed.
      Specified by:
      checkServerTrusted in interface X509TrustManager
    • getAcceptedIssuers

      public X509Certificate[] getAcceptedIssuers()
      Deprecated.
      Specified by:
      getAcceptedIssuers in interface X509TrustManager
      Returns:
      an empty array of X509Certificate