public class TrustManagerProxy extends X509ExtendedTrustManager
X509ExtendedTrustManager and gives opportunity to refresh Trust-manager with refreshed certs
without changing SslContext.| Constructor and Description |
|---|
TrustManagerProxy(String caCertFile,
int refreshDurationSec,
ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s) |
void |
checkClientTrusted(X509Certificate[] chain,
String authType,
Socket socket) |
void |
checkClientTrusted(X509Certificate[] chain,
String authType,
SSLEngine engine) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType,
Socket socket) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType,
SSLEngine engine) |
X509Certificate[] |
getAcceptedIssuers() |
public TrustManagerProxy(String caCertFile, int refreshDurationSec, ScheduledExecutorService executor)
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
CertificateExceptionpublic void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
CertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException
checkClientTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException
checkClientTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException
checkServerTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException
checkServerTrusted in class X509ExtendedTrustManagerCertificateExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.