Android.Net.SSLCertificateSocketFactory.GetInsecure Method
Returns a new instance of a socket factory with all SSL security checks disabled, using an optional handshake timeout and SSL session cache.

Syntax

[Android.Runtime.Register("getInsecure", "(ILandroid/net/SSLSessionCache;)Ljavax/net/ssl/SSLSocketFactory;", "")]
[System.Obsolete("deprecated")]
public static Javax.Net.Ssl.SSLSocketFactory GetInsecure (int handshakeTimeoutMillis, SSLSessionCache cache)

Parameters

handshakeTimeoutMillis
to use for SSL connection handshake, or 0 for none. The socket timeout is reset to 0 after the handshake.
cache
The Android.Net.SSLSessionCache to use, or null for no cache.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a new instance of a socket factory with all SSL security checks disabled, using an optional handshake timeout and SSL session cache.

Warning: Sockets created using this factory are vulnerable to man-in-the-middle attacks!

[Android Documentation]

Requirements

Namespace: Android.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8