AndroidClientHandler.GetSSLHostnameVerifier(HttpsURLConnection) Method

Definition

Returns a custom host name verifier for a HTTPS connection. By default it returns null and thus the connection uses whatever host name verification mechanism the operating system defaults to. Override in your class to define custom host name verification behavior. The overriding class should not set the HttpsURLConnection.HostnameVerifier property directly on the passed connection

protected virtual Javax.Net.Ssl.IHostnameVerifier? GetSSLHostnameVerifier (Javax.Net.Ssl.HttpsURLConnection connection);
abstract member GetSSLHostnameVerifier : Javax.Net.Ssl.HttpsURLConnection -> Javax.Net.Ssl.IHostnameVerifier
override this.GetSSLHostnameVerifier : Javax.Net.Ssl.HttpsURLConnection -> Javax.Net.Ssl.IHostnameVerifier

Parameters

connection
HttpsURLConnection

HTTPS connection object.

Returns

IHostnameVerifier

Instance of IHostnameVerifier to be used for this HTTPS connection

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to