org.apache.commons.ssl
Class Java14TrustManagerWrapper

java.lang.Object
  extended by org.apache.commons.ssl.Java14TrustManagerWrapper
All Implemented Interfaces:
TrustManager, X509TrustManager

public class Java14TrustManagerWrapper
extends Object
implements X509TrustManager

Since:
30-Mar-2006
Author:
Credit Union Central of British Columbia, www.cucbc.com, juliusdavies@cucbc.com

Field Summary
private  SSL ssl
           
private  TrustChain trustChain
           
private  X509TrustManager trustManager
           
 
Constructor Summary
Java14TrustManagerWrapper(X509TrustManager m, TrustChain tc, SSL h)
           
 
Method Summary
 void checkClientTrusted(X509Certificate[] chain, String authType)
           
 void checkServerTrusted(X509Certificate[] chain, String authType)
           
 X509Certificate[] getAcceptedIssuers()
           
private static Throwable getRootThrowable(Throwable t)
           
private  void testShouldWeThrow(CertificateException checkException, X509Certificate[] chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trustManager

private final X509TrustManager trustManager

trustChain

private final TrustChain trustChain

ssl

private final SSL ssl
Constructor Detail

Java14TrustManagerWrapper

public Java14TrustManagerWrapper(X509TrustManager m,
                                 TrustChain tc,
                                 SSL h)
Method Detail

checkClientTrusted

public void checkClientTrusted(X509Certificate[] chain,
                               String authType)
                        throws CertificateException
Specified by:
checkClientTrusted in interface X509TrustManager
Throws:
CertificateException

checkServerTrusted

public void checkServerTrusted(X509Certificate[] chain,
                               String authType)
                        throws CertificateException
Specified by:
checkServerTrusted in interface X509TrustManager
Throws:
CertificateException

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()
Specified by:
getAcceptedIssuers in interface X509TrustManager

testShouldWeThrow

private void testShouldWeThrow(CertificateException checkException,
                               X509Certificate[] chain)
                        throws CertificateException
Throws:
CertificateException

getRootThrowable

private static Throwable getRootThrowable(Throwable t)