public class DummySSLTrustManager extends Object implements X509TrustManager
| Constructor and Description |
|---|
DummySSLTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] arg0,
String arg1)
This method accepts all certificates
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
This method accepts all certificates
|
X509Certificate[] |
getAcceptedIssuers()
This method accepts all certificates
|
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionX509TrustManager.checkClientTrusted(java.security.cert.X509Certificate[], java.lang.String)public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerchain - a list of certificates forming an certificate chain - these are the certs being checked.authType - the type of authentication being used; usually 'RSA' I believe...CertificateException - if the certificate is not valid.X509TrustManager.checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String)public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerX509TrustManager.getAcceptedIssuers()Copyright © 2017 SAP SE. All Rights Reserved.