AndroidClientHandler.GetSSLHostnameVerifier(HttpsURLConnection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.