public class ValidityCheckingX509ExtendedTrustManager extends X509ExtendedTrustManager
X509ExtendedTrustManager that checks the validity of the chain before continuing with the (optional)
delegate X509ExtendedTrustManager.| Constructor and Description |
|---|
ValidityCheckingX509ExtendedTrustManager()
Constructor for a
X509ExtendedTrustManager that will trust any certificates that are currently valid. |
ValidityCheckingX509ExtendedTrustManager(X509ExtendedTrustManager delegate)
Constructor for a
X509ExtendedTrustManager that will trust any certificates that are both currently
valid and trusted by the supplied X509ExtendedTrustManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkClientTrusted(X509Certificate[] chain,
String authType,
Socket socket) |
void |
checkClientTrusted(X509Certificate[] chain,
String authType,
SSLEngine engine) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType,
Socket socket) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType,
SSLEngine engine) |
X509Certificate[] |
getAcceptedIssuers() |
public ValidityCheckingX509ExtendedTrustManager()
X509ExtendedTrustManager that will trust any certificates that are currently valid.public ValidityCheckingX509ExtendedTrustManager(@NonNull
X509ExtendedTrustManager delegate)
X509ExtendedTrustManager that will trust any certificates that are both currently
valid and trusted by the supplied X509ExtendedTrustManager.delegate - the supplied X509ExtendedTrustManager that all certificates must additionally be trusted
by in order for a currently valid certificate to be trusted.public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException
checkClientTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException
checkServerTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException
checkClientTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException
checkServerTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
CertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
CertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
Copyright © 2004–2022. All rights reserved.