fix
Class NaiveTrustManager
java.lang.Object
fix.NaiveTrustManager
- All Implemented Interfaces:
- javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager
public class NaiveTrustManager
- extends java.lang.Object
- implements javax.net.ssl.X509TrustManager
This Trust Manager is "naive" because it trusts everyone.
Method Summary |
void |
checkClientTrusted(java.security.cert.X509Certificate[] cert,
java.lang.String authType)
Doesn't throw an exception, so this is how it approves a certificate. |
void |
checkServerTrusted(java.security.cert.X509Certificate[] cert,
java.lang.String authType)
Doesn't throw an exception, so this is how it approves a certificate. |
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
|
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(java.security.cert.X509Certificate[] cert,
java.lang.String authType)
throws java.security.cert.CertificateException
- Doesn't throw an exception, so this is how it approves a certificate.
- Specified by:
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
- Throws:
java.security.cert.CertificateException
- See Also:
X509TrustManager.checkClientTrusted(java.security.cert.X509Certificate[], String)
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] cert,
java.lang.String authType)
throws java.security.cert.CertificateException
- Doesn't throw an exception, so this is how it approves a certificate.
- Specified by:
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
- Throws:
java.security.cert.CertificateException
- See Also:
X509TrustManager.checkServerTrusted(java.security.cert.X509Certificate[], String)
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
- See Also:
X509TrustManager.getAcceptedIssuers()