public final class SimpleX509TrustManager extends Object implements X509TrustManager
| Constructor and Description |
|---|
SimpleX509TrustManager(boolean lax)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
public SimpleX509TrustManager(boolean lax) throws KeyStoreException, NoSuchAlgorithmException
lax - If KeyStoreException - Generic keystore exception.NoSuchAlgorithmException - Unknown cryptographic algorithm.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.