Class TLSUtils.AcceptAllTrustManager

java.lang.Object
org.jivesoftware.smack.util.TLSUtils.AcceptAllTrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager
Enclosing class:
TLSUtils

public static class TLSUtils.AcceptAllTrustManager extends Object implements X509TrustManager
A X509TrustManager that doesn't validate X.509 certificates.

Connections that use this TrustManager will just be encrypted, without any guarantee that the counter part is actually the intended one. Man-in-the-Middle attacks will be possible, since any certificate presented by the attacker will be considered valid.