Class XmppHostnameVerifier

  • All Implemented Interfaces:
    javax.net.ssl.HostnameVerifier

    public class XmppHostnameVerifier
    extends java.lang.Object
    implements javax.net.ssl.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).

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean verify​(java.lang.String hostname, javax.net.ssl.SSLSession session)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • verify

        public boolean verify​(java.lang.String hostname,
                              javax.net.ssl.SSLSession session)
        Specified by:
        verify in interface javax.net.ssl.HostnameVerifier