Skip to content

Most visited

Recently visited

navigation
Added in API level 1

HostnameVerifier

public interface HostnameVerifier

javax.net.ssl.HostnameVerifier
Known Indirect Subclasses


The 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.

Summary

Public methods

abstract boolean verify(String hostname, SSLSession session)

Verifies that the specified hostname is allowed within the specified SSL session.

Public methods

verify

Added in API level 1
boolean verify (String hostname, 
                SSLSession session)

Verifies that the specified hostname is allowed within the specified SSL session.

Parameters
hostname String: the hostname.
session SSLSession: the SSL session of the connection.
Returns
boolean true if the specified hostname is allowed, otherwise false.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.