com.jbase.jremote.io
Class NaiveTrustManager
java.lang.Object
com.jbase.jremote.io.NaiveTrustManager
- All Implemented Interfaces:
- TrustManager, X509TrustManager
public class NaiveTrustManager
- extends Object
- implements X509TrustManager
This Trust Manager is "naive" because it trusts everyone.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NaiveTrustManager
public NaiveTrustManager()
checkClientTrusted
public void checkClientTrusted(X509Certificate[] cert,
String authType)
throws CertificateException
- Doesn't throw an exception, so this is how it approves a certificate.
- Specified by:
checkClientTrusted
in interface X509TrustManager
- Throws:
CertificateException
- See Also:
X509TrustManager.checkClientTrusted(java.security.cert.X509Certificate[], String)
checkServerTrusted
public void checkServerTrusted(X509Certificate[] cert,
String authType)
throws CertificateException
- Doesn't throw an exception, so this is how it approves a certificate.
- Specified by:
checkServerTrusted
in interface X509TrustManager
- Throws:
CertificateException
- See Also:
X509TrustManager.checkServerTrusted(java.security.cert.X509Certificate[], String)
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface X509TrustManager
- See Also:
X509TrustManager.getAcceptedIssuers()
Copyright © 2016 TEMENOS. All Rights Reserved.