public class DefaultTrustManager extends Object implements X509TrustManager
TrustManagerFactory
and delegates to those.Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger for this class.
|
private X509TrustManager[] |
trustManagers
Default trust managers.
|
Constructor and Description |
---|
DefaultTrustManager()
Creates a new default trust manager.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
protected final Logger logger
private final X509TrustManager[] trustManagers
public DefaultTrustManager()
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted
in interface X509TrustManager
CertificateException
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
CertificateException
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.