public final class CustomHostnameVerifier extends Object implements HostnameVerifier
Modifier and Type | Field and Description |
---|---|
static CustomHostnameVerifier |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static List<String> |
allSubjectAltNames(X509Certificate certificate) |
static CustomHostnameVerifier |
getInstance() |
boolean |
verify(String host,
SSLSession session) |
boolean |
verify(String host,
X509Certificate certificate) |
boolean |
verifyHostname(String hostname,
String pattern)
Returns
true iff hostname matches the domain name pattern . |
public static final CustomHostnameVerifier INSTANCE
public static CustomHostnameVerifier getInstance()
public boolean verify(String host, SSLSession session)
verify
in interface HostnameVerifier
public boolean verify(String host, X509Certificate certificate)
public static List<String> allSubjectAltNames(X509Certificate certificate)