@Deprecated public class EasyX509TrustManager extends Object implements X509TrustManager
EasyX509TrustManager unlike default X509TrustManager accepts
self-signed certificates.
This trust manager SHOULD NOT be used for productive systems due to security reasons, unless it is a concious decision and you are perfectly aware of security implications of accepting self-signed certificates
| Constructor and Description |
|---|
EasyX509TrustManager(KeyStore keystore,
boolean allowExpired)
Deprecated.
Constructor for EasyX509TrustManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] certificates,
String authType)
Deprecated.
|
void |
checkServerTrusted(X509Certificate[] certificates,
String authType)
Deprecated.
|
X509Certificate[] |
getAcceptedIssuers()
Deprecated.
|
public EasyX509TrustManager(KeyStore keystore, boolean allowExpired) throws NoSuchAlgorithmException, KeyStoreException
keystore - keystoreallowExpired - flag if expired should be allowedNoSuchAlgorithmException - migth be thrownKeyStoreException - migth be thrownpublic void checkClientTrusted(X509Certificate[] certificates, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionX509TrustManager.checkClientTrusted(X509Certificate[], String)public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionX509TrustManager.checkServerTrusted(java.security.cert.X509Certificate[], String authType)public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerX509TrustManager.getAcceptedIssuers()Copyright © 2010 - 2020 Adobe. All Rights Reserved