public class HostnameVerifierConfig extends AbstractConfig
Modifier and Type | Field and Description |
---|---|
private CertificateHostnameVerifier |
certificateHostnameVerifier
Certificate hostname verifier.
|
private String[] |
hostnames
Hostnames to verify.
|
logger
Constructor and Description |
---|
HostnameVerifierConfig()
Default constructor.
|
HostnameVerifierConfig(CertificateHostnameVerifier verifier,
String... names)
Creates a new hostname verifier config.
|
Modifier and Type | Method and Description |
---|---|
CertificateHostnameVerifier |
getCertificateHostnameVerifier()
Returns the certificate hostname verifier.
|
String[] |
getHostnames()
Returns the hostnames to verify.
|
void |
setCertificateHostnameVerifier(CertificateHostnameVerifier verifier)
Sets the certificate hostname verifier.
|
void |
setHostnames(String... names)
Sets the hostnames to verify.
|
String |
toString() |
checkImmutable, checkStringInput, makeImmutable
private CertificateHostnameVerifier certificateHostnameVerifier
private String[] hostnames
public HostnameVerifierConfig()
public HostnameVerifierConfig(CertificateHostnameVerifier verifier, String... names)
verifier
- certificate hostname verifiernames
- hostnamespublic CertificateHostnameVerifier getCertificateHostnameVerifier()
public void setCertificateHostnameVerifier(CertificateHostnameVerifier verifier)
verifier
- certificate hostname verifierpublic String[] getHostnames()
public void setHostnames(String... names)
names
- hostnamesCopyright © 2003-2019 Virginia Tech. All Rights Reserved.