org.ops4j.net
Class AllCertificatesTrustManager

java.lang.Object
  extended by org.ops4j.net.AllCertificatesTrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

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

A trust manager that will accept any certificate. I.e. thisclass performs NO TRUST MANAGEMENT and simply serves as a mechanism through which https connections can be established with the same notion of trust as a http connection (i.e. none).

Since:
0.5.0, January 16, 2008
Author:
Niclas Hedhman, Alin Dreghiciu

Constructor Summary
AllCertificatesTrustManager()
           
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType)
          Null implementation.
 void checkServerTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType)
          Null implementation.
 java.security.cert.X509Certificate[] getAcceptedIssuers()
          Null implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllCertificatesTrustManager

public AllCertificatesTrustManager()
Method Detail

checkServerTrusted

public void checkServerTrusted(java.security.cert.X509Certificate[] certs,
                               java.lang.String authType)
Null implementation.

Specified by:
checkServerTrusted in interface javax.net.ssl.X509TrustManager
Parameters:
certs - the supplied certs (ignored)
authType - the supplied type (ignored)

checkClientTrusted

public void checkClientTrusted(java.security.cert.X509Certificate[] certs,
                               java.lang.String authType)
Null implementation.

Specified by:
checkClientTrusted in interface javax.net.ssl.X509TrustManager
Parameters:
certs - the supplied certs (ignored)
authType - the supplied type (ignored)

getAcceptedIssuers

public java.security.cert.X509Certificate[] getAcceptedIssuers()
Null implementation.

Specified by:
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager
Returns:
an empty certificate array


Copyright © 2006-2008 OPS4J - Open Participation Software for Java. All Rights Reserved.