NoopHostnameVerifier
@Deprecated @Contract(threading=IMMUTABLE) public class AllowAllHostnameVerifier extends AbstractVerifier
Modifier and Type | Field and Description |
---|---|
static AllowAllHostnameVerifier |
INSTANCE
Deprecated.
|
Constructor and Description |
---|
AllowAllHostnameVerifier()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Deprecated.
|
void |
verify(String host,
String[] cns,
String[] subjectAlts)
Deprecated.
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 static final AllowAllHostnameVerifier INSTANCE
public final void verify(String host, String[] cns, String[] subjectAlts)
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.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.