com.rabbitmq.client
Class NullTrustManager

java.lang.Object
  extended by com.rabbitmq.client.NullTrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

public class NullTrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager

Convenience class providing a default implementation of javax.net.ssl.X509TrustManager. Trusts every single certificate presented to it.


Constructor Summary
NullTrustManager()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullTrustManager

public NullTrustManager()
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 interface javax.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 interface javax.net.ssl.X509TrustManager

getAcceptedIssuers

public java.security.cert.X509Certificate[] getAcceptedIssuers()
Always returns an empty array of X509Certificates.

Specified by:
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager