com.glub.secureftp.bean
Class SSLTrustManagerJSSE

java.lang.Object
  extended by com.glub.secureftp.bean.SSLTrustManagerJSSE
All Implemented Interfaces:
com.sun.net.ssl.TrustManager, com.sun.net.ssl.X509TrustManager

public class SSLTrustManagerJSSE
extends Object
implements com.sun.net.ssl.X509TrustManager

This handles the trust issues for the SSL certs.


Field Summary
protected  com.sun.net.ssl.TrustManager defaultTM
           
 
Constructor Summary
SSLTrustManagerJSSE(com.glub.secureftp.bean.SSLKeyStore sslKeyStore, SSLSessionManager sslSessionManager, InetAddress serverAddress, OutputStream replyStream)
           
 
Method Summary
 void checkClientTrusted(X509Certificate[] chain, String authType)
           
 void checkServerTrusted(X509Certificate[] chain, String authType)
           
 X509Certificate[] getAcceptedIssuers()
           
 boolean isClientTrusted(X509Certificate[] chain)
           
 boolean isServerTrusted(X509Certificate[] chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultTM

protected com.sun.net.ssl.TrustManager defaultTM
Constructor Detail

SSLTrustManagerJSSE

public SSLTrustManagerJSSE(com.glub.secureftp.bean.SSLKeyStore sslKeyStore,
                           SSLSessionManager sslSessionManager,
                           InetAddress serverAddress,
                           OutputStream replyStream)
                    throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()
Specified by:
getAcceptedIssuers in interface com.sun.net.ssl.X509TrustManager

checkServerTrusted

public void checkServerTrusted(X509Certificate[] chain,
                               String authType)
                        throws CertificateException
Throws:
CertificateException

isServerTrusted

public boolean isServerTrusted(X509Certificate[] chain)
Specified by:
isServerTrusted in interface com.sun.net.ssl.X509TrustManager

checkClientTrusted

public void checkClientTrusted(X509Certificate[] chain,
                               String authType)
                        throws CertificateException
Throws:
CertificateException

isClientTrusted

public boolean isClientTrusted(X509Certificate[] chain)
Specified by:
isClientTrusted in interface com.sun.net.ssl.X509TrustManager


Copyright © 2000-06 Glub Tech, Inc. All Rights Reserved.