Javax.Net.Ssl.SSLContext.GetInstance Method
Creates a new SSLContext instance for the specified protocol.

Syntax

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;", "")]
public static SSLContext GetInstance (string protocol)

Parameters

protocol
the requested protocol to create a context for.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.NoSuchAlgorithmExceptionif no installed provider can provide the requested protocol
Java.Lang.NullPointerExceptionif protocol is null (instead of NoSuchAlgorithmException as in 1.4 release)

Remarks

Creates a new SSLContext instance for the specified protocol.

The following protocols are supported:
ProtocolAPI Levels
Default9+
SSL9+
SSLv39+
TLS1+
TLSv11+
TLSv1.116+
TLSv1.216+

[Android Documentation]

Requirements

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