@Deprecated
public class EasyX509TrustManager
extends java.lang.Object
implements javax.net.ssl.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(java.security.KeyStore keystore,
boolean allowExpired)
Deprecated.
Constructor for EasyX509TrustManager.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] certificates,
java.lang.String authType)
Deprecated.
|
void |
checkServerTrusted(java.security.cert.X509Certificate[] certificates,
java.lang.String authType)
Deprecated.
|
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Deprecated.
|
public EasyX509TrustManager(java.security.KeyStore keystore, boolean allowExpired) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException
keystore
- keystoreallowExpired
- flag if expired should be allowedjava.security.NoSuchAlgorithmException
- migth be thrownjava.security.KeyStoreException
- migth be thrownpublic void checkClientTrusted(java.security.cert.X509Certificate[] certificates, java.lang.String authType) throws java.security.cert.CertificateException
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
java.security.cert.CertificateException
X509TrustManager.checkClientTrusted(X509Certificate[], String)
public void checkServerTrusted(java.security.cert.X509Certificate[] certificates, java.lang.String authType) throws java.security.cert.CertificateException
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
java.security.cert.CertificateException
X509TrustManager.checkServerTrusted(java.security.cert.X509Certificate[], String authType)
public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
X509TrustManager.getAcceptedIssuers()
Copyright © 2010 - 2020 Adobe. All Rights Reserved