public class AllowAnyHostnameVerifier extends Object implements HostnameVerifier, CertificateHostnameVerifier
Constructor and Description |
---|
AllowAnyHostnameVerifier() |
Modifier and Type | Method and Description |
---|---|
boolean |
verify(String hostname,
SSLSession session) |
boolean |
verify(String hostname,
X509Certificate cert)
Verify the supplied hostname matches the supplied certificate.
|
public boolean verify(String hostname, SSLSession session)
verify
in interface HostnameVerifier
public boolean verify(String hostname, X509Certificate cert)
CertificateHostnameVerifier
verify
in interface CertificateHostnameVerifier
hostname
- to verifycert
- to verify hostname againstCopyright © 2003-2019 Virginia Tech. All Rights Reserved.