public class TrustEverythingTrustManager extends Object implements X509TrustManager
X509TrustManager.
Trusts every single certificate presented to it. This implementation does not perform peer
verification and provides no protection against Man-in-the-Middle (MITM) attacks and therefore
only suitable for some development and QA environments.| Constructor and Description |
|---|
TrustEverythingTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
Doesn't even bother looking at its arguments, simply returns,
which makes the check succeed.
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
Doesn't even bother looking at its arguments, simply returns,
which makes the check succeed.
|
X509Certificate[] |
getAcceptedIssuers()
Always returns an empty array of X509Certificates.
|
public void checkClientTrusted(X509Certificate[] chain, String authType)
checkClientTrusted in interface X509TrustManagerpublic void checkServerTrusted(X509Certificate[] chain, String authType)
checkServerTrusted in interface X509TrustManagerpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.