public final class LdapClientTrustStoreManager extends Object implements X509TrustManager, Serializable
Constructor and Description |
---|
LdapClientTrustStoreManager(String trustStoreFile,
char[] trustStorePw,
String trustStoreFormat,
boolean isExamineValidity)
Constructor used by connection configuration utility to load trust store manager.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] x509Chain,
String authNType)
Determine if client certificate is to be trusted.
|
void |
checkServerTrusted(X509Certificate[] x509Chain,
String authNType)
Determine if server certificate is to be trusted.
|
X509Certificate[] |
getAcceptedIssuers()
Return the list of accepted issuers for this trust manager.
|
public LdapClientTrustStoreManager(String trustStoreFile, char[] trustStorePw, String trustStoreFormat, boolean isExamineValidity)
trustStoreFile
- contains name of trust store file.trustStorePw
- contains the password for trust storetrustStoreFormat
- contains the format for trust storeisExamineValidity
- boolean var determines if certificate will be examined for valid dates on load.public void checkClientTrusted(X509Certificate[] x509Chain, String authNType) throws CertificateException
checkClientTrusted
in interface X509TrustManager
x509Chain
- The certificate chainauthNType
- The key exchange algorithm being usedCertificateException
- If the trustManager cannot be foundpublic void checkServerTrusted(X509Certificate[] x509Chain, String authNType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
x509Chain
- The certificate chainauthNType
- The key exchange algorithm being usedCertificateException
- If the trustManager cannot be foundpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.