Sdílet prostřednictvím


SSLCertificateSocketFactory.GetDefault Method

Definition

Overloads

GetDefault(Int32)

Returns a new socket factory instance with an optional handshake timeout.

GetDefault(Int32, SSLSessionCache)

Returns a new socket factory instance with an optional handshake timeout and SSL session cache.

GetDefault(Int32)

Returns a new socket factory instance with an optional handshake timeout.

[Android.Runtime.Register("getDefault", "(I)Ljavax/net/SocketFactory;", "")]
public static Javax.Net.SocketFactory? GetDefault (int handshakeTimeoutMillis);
[<Android.Runtime.Register("getDefault", "(I)Ljavax/net/SocketFactory;", "")>]
static member GetDefault : int -> Javax.Net.SocketFactory

Parameters

handshakeTimeoutMillis
Int32

to use for SSL connection handshake, or 0 for none. The socket timeout is reset to 0 after the handshake.

Returns

a new SSLSocketFactory with the specified parameters

Attributes

Remarks

Returns a new socket factory instance with an optional handshake timeout.

Java documentation for android.net.SSLCertificateSocketFactory.getDefault(int).

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

GetDefault(Int32, SSLSessionCache)

Returns a new socket factory instance with an optional handshake timeout and SSL session cache.

[Android.Runtime.Register("getDefault", "(ILandroid/net/SSLSessionCache;)Ljavax/net/ssl/SSLSocketFactory;", "")]
public static Javax.Net.Ssl.SSLSocketFactory? GetDefault (int handshakeTimeoutMillis, Android.Net.SSLSessionCache? cache);
[<Android.Runtime.Register("getDefault", "(ILandroid/net/SSLSessionCache;)Ljavax/net/ssl/SSLSocketFactory;", "")>]
static member GetDefault : int * Android.Net.SSLSessionCache -> Javax.Net.Ssl.SSLSocketFactory

Parameters

handshakeTimeoutMillis
Int32

to use for SSL connection handshake, or 0 for none. The socket timeout is reset to 0 after the handshake.

cache
SSLSessionCache

The SSLSessionCache to use, or null for no cache.

Returns

a new SSLSocketFactory with the specified parameters

Attributes

Remarks

Returns a new socket factory instance with an optional handshake timeout and SSL session cache.

Java documentation for android.net.SSLCertificateSocketFactory.getDefault(int, android.net.SSLSessionCache).

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