com.glub.secureftp.bean
Class SSLTrustManager
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLTrustManager
public SSLTrustManager(com.glub.secureftp.bean.SSLKeyStore sslKeyStore,
SSLSessionManager sslSessionManager,
InetAddress serverAddress,
OutputStream replyStream)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
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.