Package javax.net.ssl
Interface HostnameVerifier
-
- All Known Implementing Classes:
OkHostnameVerifier
public interface HostnameVerifierThe interface to be used to provide hostname verification functionality.This is an extended verification option that implementers can provide. It is to be used during a handshake if the URL's hostname does not match the peer's identification hostname.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanverify(String hostname, SSLSession session)Verifies that the specified hostname is allowed within the specified SSL session.
-
-
-
Method Detail
-
verify
boolean verify(String hostname, SSLSession session)
Verifies that the specified hostname is allowed within the specified SSL session.- Parameters:
hostname- the hostname.session- the SSL session of the connection.- Returns:
trueif the specified hostname is allowed, otherwisefalse.
-
-