AndroidClientHandler.ConfigureCustomSSLSocketFactory(HttpsURLConnection) 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

SSLSocketFactory

Instance of SSLSocketFactory ready to use with the 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