Package org.apache.commons.net.util
Class TrustManagerUtils.TrustManager
java.lang.Object
org.apache.commons.net.util.TrustManagerUtils.TrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
- Enclosing class:
TrustManagerUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] certificates, String authType) Never generates a CertificateException.void
checkServerTrusted
(X509Certificate[] certificates, String authType)
-
Field Details
-
checkServerValidity
private final boolean checkServerValidity
-
-
Constructor Details
-
TrustManager
TrustManager(boolean checkServerValidity)
-
-
Method Details
-
checkClientTrusted
Never generates a CertificateException.- Specified by:
checkClientTrusted
in interfaceX509TrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException - Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
- Returns:
- an empty array of certificates
-