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)
Verifies that the specified hostname is allowed within the specified SSL
session.
|
boolean |
verify(String host,
X509Certificate certificate) |
public static final OkHostnameVerifier INSTANCE
public boolean verify(String host, SSLSession session)
HostnameVerifierverify in interface HostnameVerifierhost - the hostname.session - the SSL session of the connection.true if the specified hostname is allowed, otherwise
false.public boolean verify(String host, X509Certificate certificate)
public static List<String> allSubjectAltNames(X509Certificate certificate)