org.apache.directory.ldap.client.api
Class NoVerificationTrustManager
java.lang.Object
org.apache.directory.ldap.client.api.NoVerificationTrustManager
- All Implemented Interfaces:
- TrustManager, X509TrustManager
public class NoVerificationTrustManager
- extends Object
- implements X509TrustManager
An implementation of X509TrustManager which trusts the given certificates without verifying them.
- Author:
- Apache Directory Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoVerificationTrustManager
public NoVerificationTrustManager()
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates,
String s)
throws CertificateException
-
- Specified by:
checkClientTrusted in interface X509TrustManager
- Throws:
CertificateException
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates,
String s)
throws CertificateException
-
- Specified by:
checkServerTrusted in interface X509TrustManager
- Throws:
CertificateException
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
-
- Specified by:
getAcceptedIssuers in interface X509TrustManager
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.