public class StrictHostnameVerifier
extends org.apache.commons.ssl.HostnameVerifier.AbstractVerifier
HostnameVerifier which implements strict hostname validation.
This verifier implementation is based on the not-yet-commons-ssl HostnameVerifier.AbstractVerifier.
It differs from the not-yet-commons-ssl STRICT implementation by performing certificate common name (CN)
extraction by parsing the ASN.1 representation of the certificate's X500Principal.
For further implementation details, see the Javadocs for org.apache.commons.ssl.HostnameVerifier.STRICT.
| Constructor and Description |
|---|
StrictHostnameVerifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(String[] host,
String[] cns,
String[] subjectAlts) |
void |
check(String[] host,
X509Certificate cert) |
String |
toString() |
public final void check(String[] host, String[] cns, String[] subjectAlts) throws SSLException
SSLExceptionpublic void check(String[] host, X509Certificate cert) throws SSLException
check in class org.apache.commons.ssl.HostnameVerifier.AbstractVerifierSSLExceptionCopyright © 1999-2014. All Rights Reserved.