Package org.jivesoftware.smack.java7
Class XmppHostnameVerifier
java.lang.Object
org.jivesoftware.smack.java7.XmppHostnameVerifier
- All Implemented Interfaces:
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).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
XmppHostnameVerifier
public XmppHostnameVerifier()
-
-
Method Details
-
verify
- Specified by:
verify
in interfaceHostnameVerifier
-