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