com.glub.secureftp.bean
Class SSLTrustManager

java.lang.Object
  extended by com.glub.secureftp.bean.SSLTrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public class SSLTrustManager
extends Object
implements X509TrustManager

This handles the trust issues for the SSL certs.


Constructor Summary
SSLTrustManager(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
 

Constructor Detail

SSLTrustManager

public SSLTrustManager(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 X509TrustManager

checkServerTrusted

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

isServerTrusted

public boolean isServerTrusted(X509Certificate[] chain)

checkClientTrusted

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

isClientTrusted

public boolean isClientTrusted(X509Certificate[] chain)


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