public class DefaultHostnameVerifier extends Object implements HostnameVerifier, JaxmppHostnameVerifier
Constructor and Description |
---|
DefaultHostnameVerifier() |
Modifier and Type | Method and Description |
---|---|
protected static String |
extractCN(X500Principal principal) |
protected boolean |
match(String hostname,
String altName) |
boolean |
verify(String hostname,
Certificate certificate) |
boolean |
verify(String hostname,
SSLSession session) |
protected boolean |
verifyHostname(String hostname,
X509Certificate x509Certificate) |
protected boolean |
verifyIp(String ipAddr,
X509Certificate x509Certificate) |
protected final Logger log
protected static String extractCN(X500Principal principal)
public boolean verify(String hostname, Certificate certificate)
verify
in interface JaxmppHostnameVerifier
public boolean verify(String hostname, SSLSession session)
verify
in interface HostnameVerifier
protected boolean verifyHostname(String hostname, X509Certificate x509Certificate) throws CertificateParsingException
CertificateParsingException
protected boolean verifyIp(String ipAddr, X509Certificate x509Certificate) throws CertificateParsingException
CertificateParsingException
Copyright © 2006–2023 Tigase. All rights reserved.