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 X509TrustManager
public void checkServerTrusted(X509Certificate[] chain, String authType)
checkServerTrusted
in interface X509TrustManager
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.