Class XmppHostnameVerifier

  • All Implemented Interfaces:
    HostnameVerifier

    public class XmppHostnameVerifier
    extends Object
    implements HostnameVerifier
    HostnameVerifier implementation for XMPP. Verifies a given name, the 'hostname' argument, which should be the XMPP domain of the used XMPP service. The verifier compares the name with the servers TLS certificate's Subject Alternative Name (SAN) DNS name ('dNSName'), and, if there are no SANs, which the Common Name (CN).

    Based on the work by Kevin Locke (released under CC0 1.0 Universal / Public Domain Dedication).