public final class OkHostnameVerifier extends Object implements ConscryptHostnameVerifier
| Modifier and Type | Field and Description |
|---|---|
static OkHostnameVerifier |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
allSubjectAltNames(X509Certificate certificate) |
static OkHostnameVerifier |
strictInstance() |
boolean |
verify(String host,
X509Certificate certificate) |
boolean |
verify(X509Certificate[] certs,
String host,
SSLSession session)
Returns whether the given hostname is allowable given the peer's authentication information
from the given session.
|
public static final OkHostnameVerifier INSTANCE
public static OkHostnameVerifier strictInstance()
public boolean verify(X509Certificate[] certs, String host, SSLSession session)
ConscryptHostnameVerifierverify in interface ConscryptHostnameVerifierpublic boolean verify(String host, X509Certificate certificate)
public static List<String> allSubjectAltNames(X509Certificate certificate)