public class HostnameVerifierAdapter extends Object implements HostnameVerifier
CertificateHostnameVerifier
for use as a HostnameVerifier
.Modifier and Type | Field and Description |
---|---|
private CertificateHostnameVerifier |
hostnameVerifier
Hostname verifier to adapt.
|
protected Logger |
logger
Logger for this class.
|
Constructor and Description |
---|
HostnameVerifierAdapter(CertificateHostnameVerifier verifier)
Creates a new hostname verifier adapter.
|
protected final Logger logger
private final CertificateHostnameVerifier hostnameVerifier
public HostnameVerifierAdapter(CertificateHostnameVerifier verifier)
verifier
- verifier to adaptpublic boolean verify(String hostname, SSLSession session)
verify
in interface HostnameVerifier
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.