-
- All Implemented Interfaces:
-
javax.net.ssl.HostnameVerifier
public final class OkHostnameVerifier implements HostnameVerifier
A HostnameVerifier consistent with RFC 2818.
-
-
Field Summary
Fields Modifier and Type Field Description public final static OkHostnameVerifierINSTANCE
-
Method Summary
Modifier and Type Method Description booleanverify(String host, SSLSession session)booleanverify(String host, X509Certificate certificate)static List<String>allSubjectAltNames(X509Certificate certificate)booleanverifyHostname(String hostname, String pattern)Returns {@code true}iff{@code hostname}matches the domain name{@code pattern}.-
-
Method Detail
-
verify
boolean verify(String host, SSLSession session)
-
verify
boolean verify(String host, X509Certificate certificate)
-
allSubjectAltNames
static List<String> allSubjectAltNames(X509Certificate certificate)
-
verifyHostname
boolean verifyHostname(String hostname, String pattern)
Returns
{@code true}iff{@code hostname}matches the domain name{@code pattern}.- Parameters:
hostname- lower-case host name.pattern- domain name pattern from certificate.
-
-
-
-