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

Syntax

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

Parameters

protocol
the requested protocol to create a context for
provider
the provider that provides the requested protocol.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.NoSuchAlgorithmExceptionif the specified provider cannot 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 from the specified provider.

[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