public class HttpsHostnameVerifier extends Object implements HostnameVerifier
| Constructor and Description |
|---|
HttpsHostnameVerifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
boolean |
isEnabled() |
boolean |
isTrustAll() |
void |
setCommonnameHostMap(String commonnameHostMap) |
void |
setEnabled(boolean enabled) |
void |
setTrustAll(boolean trustAll) |
void |
shutdown() |
boolean |
verify(String hostname,
SSLSession session)
Verify that the host name is an acceptable match with
the server's authentication scheme.
|
public void init()
public void shutdown()
public boolean verify(String hostname, SSLSession session)
verify in interface HostnameVerifierhostname - the host namesession - SSLSession used on the connection to hostpublic void setCommonnameHostMap(String commonnameHostMap)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public boolean isTrustAll()
public void setTrustAll(boolean trustAll)
Copyright © 2018. All rights reserved.