Package org.jivesoftware.smack.java7
Class XmppHostnameVerifier
- java.lang.Object
-
- org.jivesoftware.smack.java7.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).
-
-
Constructor Summary
Constructors Constructor Description XmppHostnameVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
verify(java.lang.String hostname, javax.net.ssl.SSLSession session)
-
-
-
Constructor Detail
-
XmppHostnameVerifier
public XmppHostnameVerifier()
-
-
Method Detail
-
verify
public boolean verify(java.lang.String hostname, javax.net.ssl.SSLSession session)
- Specified by:
verify
in interfacejavax.net.ssl.HostnameVerifier
-
-