public final class UnsafeX509ExtendedTrustManager extends X509ExtendedTrustManager
TrustManager that trusts all X.509 certificates without any verification.
NOTE:
Never use this UnsafeX509ExtendedTrustManager in production.
It is purely for testing purposes, and thus it is very insecure.
NOTE:
Please don't use this class directly as it is part of the internal API. Class name and methods can be changed any time.
Instead use the TrustManagerUtils which provides the same functionality
while it has a stable API because it is part of the public API.
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] certificates,
String authType) |
void |
checkClientTrusted(X509Certificate[] certificates,
String authType,
Socket socket) |
void |
checkClientTrusted(X509Certificate[] certificates,
String authType,
SSLEngine sslEngine) |
void |
checkServerTrusted(X509Certificate[] certificates,
String authType) |
void |
checkServerTrusted(X509Certificate[] certificates,
String authType,
Socket socket) |
void |
checkServerTrusted(X509Certificate[] certificates,
String authType,
SSLEngine sslEngine) |
X509Certificate[] |
getAcceptedIssuers() |
static X509ExtendedTrustManager |
getInstance() |
public static X509ExtendedTrustManager getInstance()
public void checkClientTrusted(X509Certificate[] certificates, String authType)
public void checkClientTrusted(X509Certificate[] certificates, String authType, Socket socket)
checkClientTrusted in class X509ExtendedTrustManagerpublic void checkClientTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine)
checkClientTrusted in class X509ExtendedTrustManagerpublic void checkServerTrusted(X509Certificate[] certificates, String authType)
public void checkServerTrusted(X509Certificate[] certificates, String authType, Socket socket)
checkServerTrusted in class X509ExtendedTrustManagerpublic void checkServerTrusted(X509Certificate[] certificates, String authType, SSLEngine sslEngine)
checkServerTrusted in class X509ExtendedTrustManagerpublic X509Certificate[] getAcceptedIssuers()
Copyright © 2021. All rights reserved.