com.glub.secureftp.bean
Class SSLTrustManagerJSSE
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultTM
protected com.sun.net.ssl.TrustManager defaultTM
SSLTrustManagerJSSE
public SSLTrustManagerJSSE(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 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.