JCas
v0.3.1

cas.io
Class TrustAllCertsManager

java.lang.Object
  extended bycas.io.TrustAllCertsManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public class TrustAllCertsManager
extends Object
implements X509TrustManager

A trust manager that does not check the certficate chain but trust the cert instead.

Version:
1.0
Author:
Ralph Schuster

Constructor Summary
TrustAllCertsManager()
           
 
Method Summary
 void checkClientTrusted(X509Certificate[] certs, String authType)
          Does nothing
 void checkServerTrusted(X509Certificate[] certs, String authType)
          Does nothing
 X509Certificate[] getAcceptedIssuers()
          returns null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustAllCertsManager

public TrustAllCertsManager()
Method Detail

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()
returns null

Specified by:
getAcceptedIssuers in interface X509TrustManager

checkClientTrusted

public void checkClientTrusted(X509Certificate[] certs,
                               String authType)
Does nothing

Specified by:
checkClientTrusted in interface X509TrustManager

checkServerTrusted

public void checkServerTrusted(X509Certificate[] certs,
                               String authType)
Does nothing

Specified by:
checkServerTrusted in interface X509TrustManager

JCas
v0.3.1