@Immutable public class BrowserCompatHostnameVerifier extends AbstractVerifier
Constructor and Description |
---|
BrowserCompatHostnameVerifier() |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
void |
verify(String host,
String[] cns,
String[] subjectAlts)
Checks to see if the supplied hostname matches any of the supplied CNs
or "DNS" Subject-Alts.
|
acceptableCountryWildcard, countDots, getCNs, getDNSSubjectAlts, verify, verify, verify, verify
public final void verify(String host, String[] cns, String[] subjectAlts) throws SSLException
X509HostnameVerifier
host
- The hostname to verify.cns
- CN fields, in order, as extracted from the X.509
certificate.subjectAlts
- Subject-Alt fields of type 2 ("DNS"), as extracted
from the X.509 certificate.SSLException
- if the verification process fails.Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.