wjhk.jupload2.upload
Class HttpConnect.DummyTrustManager
java.lang.Object
wjhk.jupload2.upload.HttpConnect.DummyTrustManager
- All Implemented Interfaces:
- TrustManager, X509TrustManager
- Enclosing class:
- HttpConnect
protected final class HttpConnect.DummyTrustManager
- extends Object
- implements X509TrustManager
An implementation of X509TrustManager which accepts
any certificate.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpConnect.DummyTrustManager
protected HttpConnect.DummyTrustManager()
checkClientTrusted
public void checkClientTrusted(X509Certificate[] arg0,
String arg1)
throws CertificateException
- Specified by:
checkClientTrusted in interface X509TrustManager
- Throws:
CertificateException- See Also:
X509TrustManager.checkClientTrusted(java.security.cert.X509Certificate[],
java.lang.String)
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain,
String authType)
throws CertificateException
- Specified by:
checkServerTrusted in interface X509TrustManager
- Throws:
CertificateException- See Also:
X509TrustManager.checkServerTrusted(java.security.cert.X509Certificate[],
java.lang.String)
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers in interface X509TrustManager
- See Also:
X509TrustManager.getAcceptedIssuers()