Compartilhar via


HttpsURLConnection.DefaultSSLSocketFactory Property

Definition

Gets the default static SSLSocketFactory that is inherited by new instances of this class. -or- Sets the default SSLSocketFactory inherited by new instances of this class.

public static Javax.Net.Ssl.SSLSocketFactory? DefaultSSLSocketFactory { [Android.Runtime.Register("getDefaultSSLSocketFactory", "()Ljavax/net/ssl/SSLSocketFactory;", "")] get; [Android.Runtime.Register("setDefaultSSLSocketFactory", "(Ljavax/net/ssl/SSLSocketFactory;)V", "")] set; }
[<get: Android.Runtime.Register("getDefaultSSLSocketFactory", "()Ljavax/net/ssl/SSLSocketFactory;", "")>]
[<set: Android.Runtime.Register("setDefaultSSLSocketFactory", "(Ljavax/net/ssl/SSLSocketFactory;)V", "")>]
static member DefaultSSLSocketFactory : Javax.Net.Ssl.SSLSocketFactory with get, set

Property Value

the default SSLSocketFactory

Attributes

Exceptions

if the specified socket factory is null.

Remarks

Property getter documentation:

Gets the default static SSLSocketFactory that is inherited by new instances of this class.

The socket factories are used when creating sockets for secure https URL connections.

Java documentation for javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory().

Property setter documentation:

Sets the default SSLSocketFactory inherited by new instances of this class.

The socket factories are used when creating sockets for secure https URL connections.

Java documentation for javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(javax.net.ssl.SSLSocketFactory).

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