public class DisableValidationTrustManager extends X509ExtendedTrustManager
| Modifier and Type | Field and Description |
|---|---|
static DisableValidationTrustManager |
INSTANCE |
| Constructor and Description |
|---|
DisableValidationTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s) |
void |
checkClientTrusted(X509Certificate[] chain,
String authType,
Socket socket) |
void |
checkClientTrusted(X509Certificate[] chain,
String authType,
SSLEngine engine) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType,
Socket socket) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType,
SSLEngine engine) |
X509Certificate[] |
getAcceptedIssuers() |
TrustManager[] |
getTrustManagers()
获取 TrustManagers
|
public static final DisableValidationTrustManager INSTANCE
public TrustManager[] getTrustManagers()
public X509Certificate[] getAcceptedIssuers()
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
CertificateExceptionpublic void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
CertificateExceptionpublic 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 X509ExtendedTrustManagerCertificateExceptionCopyright © 2024. All rights reserved.