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