public class ConfigurableX509TrustManager extends Object implements X509TrustManager
Based on pointers in SSL Guide, and readings done in JSSE Guide.
TODO: Move to an ssl subpackage when we have other classes other than just this one.
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurableX509TrustManager.TrustLevel |
| Modifier and Type | Field and Description |
|---|---|
static ConfigurableX509TrustManager.TrustLevel |
DEFAULT
Default setting for trust level.
|
protected static Logger |
logger
Logging instance.
|
| Constructor and Description |
|---|
ConfigurableX509TrustManager() |
ConfigurableX509TrustManager(ConfigurableX509TrustManager.TrustLevel level)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] certificates,
String type) |
void |
checkServerTrusted(X509Certificate[] certificates,
String type) |
X509Certificate[] |
getAcceptedIssuers() |
protected static Logger logger
public static final ConfigurableX509TrustManager.TrustLevel DEFAULT
public ConfigurableX509TrustManager()
throws NoSuchAlgorithmException,
KeyStoreException
public ConfigurableX509TrustManager(ConfigurableX509TrustManager.TrustLevel level) throws NoSuchAlgorithmException, KeyStoreException
level - Level of trust to effect.NoSuchAlgorithmExceptionKeyStoreExceptionpublic void checkClientTrusted(X509Certificate[] certificates, String type) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] certificates, String type) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.