public class ConfigurableX509TrustManager
extends java.lang.Object
implements javax.net.ssl.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 java.util.logging.Logger |
logger
Logging instance.
|
| Constructor and Description |
|---|
ConfigurableX509TrustManager() |
ConfigurableX509TrustManager(ConfigurableX509TrustManager.TrustLevel level)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] certificates,
java.lang.String type) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] certificates,
java.lang.String type) |
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
protected static java.util.logging.Logger logger
public static final ConfigurableX509TrustManager.TrustLevel DEFAULT
public ConfigurableX509TrustManager()
throws java.security.NoSuchAlgorithmException,
java.security.KeyStoreException
java.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionpublic ConfigurableX509TrustManager(ConfigurableX509TrustManager.TrustLevel level) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException
level - Level of trust to effect.java.security.NoSuchAlgorithmExceptionjava.security.KeyStoreExceptionpublic void checkClientTrusted(java.security.cert.X509Certificate[] certificates,
java.lang.String type)
throws java.security.cert.CertificateException
checkClientTrusted in interface javax.net.ssl.X509TrustManagerjava.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] certificates,
java.lang.String type)
throws java.security.cert.CertificateException
checkServerTrusted in interface javax.net.ssl.X509TrustManagerjava.security.cert.CertificateExceptionpublic java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface javax.net.ssl.X509TrustManagerCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.