Package org.conscrypt
Class OkHostnameVerifier
- java.lang.Object
-
- org.conscrypt.OkHostnameVerifier
-
- All Implemented Interfaces:
ConscryptHostnameVerifier
public final class OkHostnameVerifier extends Object implements ConscryptHostnameVerifier
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)static OkHostnameVerifierstrictInstance()booleanverify(String host, X509Certificate certificate)booleanverify(X509Certificate[] certs, String host, SSLSession session)Returns whether the given hostname is allowable given the peer's authentication information from the given session.
-
-
-
Field Detail
-
INSTANCE
public static final OkHostnameVerifier INSTANCE
-
-
Method Detail
-
strictInstance
public static OkHostnameVerifier strictInstance()
-
verify
public boolean verify(X509Certificate[] certs, String host, SSLSession session)
Description copied from interface:ConscryptHostnameVerifierReturns whether the given hostname is allowable given the peer's authentication information from the given session.- Specified by:
verifyin interfaceConscryptHostnameVerifier
-
verify
public boolean verify(String host, X509Certificate certificate)
-
allSubjectAltNames
public static List<String> allSubjectAltNames(X509Certificate certificate)
-
-