javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager@Private
@Evolving
public final class ReloadingX509TrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager
TrustManager implementation that exposes a method, loadFrom(Path)
to reload its configuration for example when the truststore file on disk changes.| Constructor | Description |
|---|---|
ReloadingX509TrustManager(java.lang.String type,
java.lang.String location,
java.lang.String password) |
Creates a reloadable trustmanager.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
|
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
|
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
|
ReloadingX509TrustManager |
loadFrom(java.nio.file.Path path) |
public ReloadingX509TrustManager(java.lang.String type,
java.lang.String location,
java.lang.String password)
throws java.io.IOException,
java.security.GeneralSecurityException
type - type of truststore file, typically 'jks'.location - local path to the truststore file.password - password of the truststore file.
changed, in milliseconds.java.io.IOException - thrown if the truststore could not be initialized due
to an IO error.java.security.GeneralSecurityException - thrown if the truststore could not be
initialized due to a security error.public void checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
checkClientTrusted in interface javax.net.ssl.X509TrustManagerjava.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
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.X509TrustManagerpublic ReloadingX509TrustManager loadFrom(java.nio.file.Path path)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.