public interface HostnameVerifier
verify(java.lang.String,javax.net.ssl.SSLSession)
method that accepts or rejects hostnames as appropriate.| Modifier and Type | Method and Description |
|---|---|
boolean |
verify(String hostname,
SSLSession session)
Verifies a hostname given a particular SSL session.
|
boolean verify(String hostname, SSLSession session)
true if the hostname is an accepted
alias for the hostname negotiated in the SSL handshake.hostname - The hostname in question.session - The current SSL session.true if the hostname is acceptable.