Partager via


SSLSocketFactory.Default Property

Definition

Returns the default SSL socket factory.

public static Javax.Net.SocketFactory? Default { [Android.Runtime.Register("getDefault", "()Ljavax/net/SocketFactory;", "")] get; }
[<get: Android.Runtime.Register("getDefault", "()Ljavax/net/SocketFactory;", "")>]
static member Default : Javax.Net.SocketFactory

Property Value

the default SocketFactory

Attributes

Remarks

Returns the default SSL socket factory.

The first time this method is called, the security property "ssl.SocketFactory.provider" is examined. If it is non-null, a class by that name is loaded and instantiated. If that is successful and the object is an instance of SSLSocketFactory, it is made the default SSL socket factory.

Otherwise, this method returns SSLContext.getDefault().getSocketFactory(). If that call fails, an inoperative factory is returned.

Java documentation for javax.net.ssl.SSLSocketFactory.getDefault().

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