public final class OkHostnameVerifier extends Object implements HostnameVerifier
| Modifier and Type | Field and Description |
|---|---|
static OkHostnameVerifier |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
allSubjectAltNames(X509Certificate certificate) |
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 OkHostnameVerifier INSTANCE
public boolean verify(String host, SSLSession session)
verify in interface HostnameVerifierpublic boolean verify(String host, X509Certificate certificate)
public static List<String> allSubjectAltNames(X509Certificate certificate)
Copyright © 2017. All Rights Reserved.