public class ReloadableTrustManager extends Object implements X509TrustManager
Constructor and Description |
---|
ReloadableTrustManager(String trustStorePath,
String trustPasswordPath)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
public ReloadableTrustManager(String trustStorePath, String trustPasswordPath) throws SSLException
trustStorePath
- Location of trust store.trustPasswordPath
- Location of trust store password.SSLException
- Thrown when there's an issue with loading the trust store.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 © 2019 CorfuDB. All rights reserved.