javax.net.ssl
public interface HostnameVerifier
Method Summary | |
---|---|
boolean | verify(String hostname, SSLSession session)
Verifies a hostname given a particular SSL session. |
true
if the hostname is an accepted
alias for the hostname negotiated in the SSL handshake.
Parameters: hostname The hostname in question. session The current SSL session.
Returns: true
if the hostname is acceptable.