public static class RpcSSLSocketFactory.TrustAllTrustManager
extends java.lang.Object
implements javax.net.ssl.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(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Always trust for client SSL chain peer certificate chain with any
authType authentication types.
|
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Always trust for server SSL chain peer certificate chain with any
authType exchange algorithm types.
|
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Return an empty array of certificate authority certificates which are
trusted for authenticating peers.
|
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
chain
- the peer certificate chain.authType
- the authentication type based on the client certificate.public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
chain
- the peer certificate chain.authType
- the key exchange algorithm used.public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager