Class NoVerificationTrustManager
- java.lang.Object
-
- javax.net.ssl.X509ExtendedTrustManager
-
- org.apache.directory.ldap.client.api.NoVerificationTrustManager
-
- All Implemented Interfaces:
TrustManager
,X509TrustManager
public class NoVerificationTrustManager extends X509ExtendedTrustManager
An implementation ofX509TrustManager
which trusts the given certificates without verifying them.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description NoVerificationTrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(X509Certificate[] x509Certificates, String s)
void
checkClientTrusted(X509Certificate[] x509Certificates, String authType, Socket socket)
void
checkClientTrusted(X509Certificate[] x509Certificates, String authType, SSLEngine engine)
void
checkServerTrusted(X509Certificate[] x509Certificates, String s)
void
checkServerTrusted(X509Certificate[] x509Certificates, String authType, Socket socket)
void
checkServerTrusted(X509Certificate[] x509Certificates, String authType, SSLEngine engine)
X509Certificate[]
getAcceptedIssuers()
-
-
-
Constructor Detail
-
NoVerificationTrustManager
public NoVerificationTrustManager()
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType, Socket socket) throws CertificateException
- Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType, SSLEngine engine) throws CertificateException
- Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates, String authType, Socket socket) throws CertificateException
- Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates, String authType, SSLEngine engine) throws CertificateException
- Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
-
-