public static class RpcSSLSocketFactory.TrustAllTrustManager extends Object implements X509TrustManager
Note that the tradeoff of this convenience usage is the vulnerability of man-in-the-middle attacks.
| Constructor and Description |
|---|
TrustAllTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
Always trust for client SSL chain peer certificate chain with any
authType authentication types.
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
Always trust for server SSL chain peer certificate chain with any
authType exchange algorithm types.
|
X509Certificate[] |
getAcceptedIssuers()
Return an empty array of certificate authority certificates which are
trusted for authenticating peers.
|
public void checkClientTrusted(X509Certificate[] chain, String authType)
checkClientTrusted in interface X509TrustManagerchain - the peer certificate chain.authType - the authentication type based on the client certificate.public void checkServerTrusted(X509Certificate[] chain, String authType)
checkServerTrusted in interface X509TrustManagerchain - the peer certificate chain.authType - the key exchange algorithm used.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2017 Perforce Software. All Rights Reserved.