public class ReloadableX509TrustManager extends Object implements X509TrustManager
InvalidCertificateStrategy
that is
passed as a constructor argument. Certificates added in this way will be
added via a ExtraCertManager
, causing the underlying trust manager to
be reloaded.
Adapted from the implementation at "Managing a Dynamic Java Trust Store" (blog post)Constructor and Description |
---|
ReloadableX509TrustManager(ExtraCertManager certManager,
InvalidCertificateStrategy invalidCertStrat) |
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
public ReloadableX509TrustManager(ExtraCertManager certManager, InvalidCertificateStrategy invalidCertStrat) throws GeneralSecurityException
GeneralSecurityException
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 © 2004-2017. All Rights Reserved.