public final class OkHostnameVerifier extends Object implements HostnameVerifier
Modifier and Type | Field and Description |
---|---|
static OkHostnameVerifier |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
verify(String host,
SSLSession session) |
boolean |
verify(String host,
X509Certificate certificate) |
boolean |
verifyHostName(String hostName,
String cn)
Returns true if
hostName matches the name or pattern cn . |
public static final OkHostnameVerifier INSTANCE
public boolean verify(String host, SSLSession session)
verify
in interface HostnameVerifier
public boolean verify(String host, X509Certificate certificate)
Copyright © 2014. All rights reserved.