protected static class InstallCert.SavingTrustManager extends Object implements X509TrustManager
X509TrustManager subclass that accumulates unknown
certificates in order to allow saving them afterwards.| Modifier and Type | Field and Description |
|---|---|
protected Set<X509Certificate> |
allAccumulatedCerts |
protected Set<X509Certificate> |
newCerts |
protected X509TrustManager |
parentTm |
| Constructor and Description |
|---|
InstallCert.SavingTrustManager(X509TrustManager parentTm,
KeyStore ksExtra)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
protected X509TrustManager parentTm
protected Set<X509Certificate> allAccumulatedCerts
protected Set<X509Certificate> newCerts
InstallCert.SavingTrustManager(X509TrustManager parentTm, KeyStore ksExtra) throws KeyStoreException
parentTm - an X509TrustManager instance to do the
standard part of certificates validation jobksExtra - a KeyStore instance that contains previously
accumulated certificatesKeyStoreExceptionpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManager