Package com.squareup.okhttp.internal.tls
Class OkHostnameVerifier
- java.lang.Object
-
- com.squareup.okhttp.internal.tls.OkHostnameVerifier
-
- All Implemented Interfaces:
HostnameVerifier
public final class OkHostnameVerifier extends Object implements HostnameVerifier
A HostnameVerifier consistent with RFC 2818.
-
-
Field Summary
Fields Modifier and Type Field Description static OkHostnameVerifierINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<String>allSubjectAltNames(X509Certificate certificate)booleanverify(String host, X509Certificate certificate)booleanverify(String host, SSLSession session)Verifies that the specified hostname is allowed within the specified SSL session.
-
-
-
Field Detail
-
INSTANCE
public static final OkHostnameVerifier INSTANCE
-
-
Method Detail
-
verify
public boolean verify(String host, SSLSession session)
Description copied from interface:HostnameVerifierVerifies that the specified hostname is allowed within the specified SSL session.- Specified by:
verifyin interfaceHostnameVerifier- Parameters:
host- the hostname.session- the SSL session of the connection.- Returns:
trueif the specified hostname is allowed, otherwisefalse.
-
verify
public boolean verify(String host, X509Certificate certificate)
-
allSubjectAltNames
public static List<String> allSubjectAltNames(X509Certificate certificate)
-
-