public class PermissiveTrustManager extends Object implements X509TrustManager
| Constructor and Description |
|---|
PermissiveTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s)
Checks the client certificates but does nothing.
|
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s)
Checks the server certificates but does nothing.
|
X509Certificate[] |
getAcceptedIssuers()
Returns an empty array of certificate authorities, indicating
that all certificates are trusted, subject to the
verification done in the checkClientTrusted and checkServerTrusted methods.
|
public void checkClientTrusted(X509Certificate[] x509Certificates, String s)
checkClientTrusted in interface X509TrustManagerx509Certificates - Array of client certificates to checks - The auth type (e.g., "RSA", "DSS")public void checkServerTrusted(X509Certificate[] x509Certificates, String s)
checkServerTrusted in interface X509TrustManagerx509Certificates - Array of server certificates to checks - The auth type (e.g., "RSA", "DSS")public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2023. All rights reserved.