Language

AndroidMessageHandler.ConfigureCustomSSLSocketFactory Method

Definition

Configure and return a custom SSLSocketFactory for the passed HTTPS connection. If the class overriding the method returns anything but the default null, the SSL setup code will not call the ConfigureKeyManagerFactory(KeyStore) nor the ConfigureTrustManagerFactory(KeyStore) methods used to configure a custom trust manager which is then used to create a default socket factory. Deriving class must perform all the key manager and trust manager configuration to ensure proper operation of the returned socket factory.

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

Parameters

connection
HttpsURLConnection

HTTPS connection to return socket factory for

Returns

Instance of SSLSocketFactory ready to use with the HTTPS connection.

Applies to