public class PermissiveTrustManager extends Object implements X509TrustManager
Trivial implementation of an X509TrustManager that does not check the hostname, validity date nor chain of authority of certificates.
Useful when using an home-made self-signed certificate.
| Constructor and Description |
|---|
PermissiveTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] arg0,
String arg1) |
void |
checkServerTrusted(X509Certificate[] arg0,
String arg1) |
X509Certificate[] |
getAcceptedIssuers() |
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2021. All rights reserved.