SSLServerSocketFactory.Default Property

Definition

Returns the default SSL server socket factory.

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

Property Value

the default ServerSocketFactory

Attributes

Remarks

Returns the default SSL server socket factory.

The first time this method is called, the security property "ssl.ServerSocketFactory.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 SSLServerSocketFactory, it is made the default SSL server socket factory.

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

Java documentation for javax.net.ssl.SSLServerSocketFactory.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