Package org.jivesoftware.smack.java7
Class XmppHostnameVerifier
- java.lang.Object
-
- org.jivesoftware.smack.java7.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).
-
-
Constructor Summary
Constructors Constructor Description XmppHostnameVerifier()
-
-
-
Constructor Detail
-
XmppHostnameVerifier
public XmppHostnameVerifier()
-
-
Method Detail
-
verify
public boolean verify(String hostname, SSLSession session)
- Specified by:
verify
in interfaceHostnameVerifier
-
-