Javax.Crypto.Cipher.GetInstance Method
Creates a new cipher for the specified transformation provided by the specified provider.

Syntax

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/Cipher;", "")]
public static Cipher GetInstance (string transformation, string provider)

Parameters

transformation
the name of the transformation to create a cipher for.
provider
the name of the provider to ask for the transformation.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.NoSuchAlgorithmExceptionif the specified provider can not provide the transformation, or it is null, empty or in an invalid format.
Java.Security.NoSuchProviderExceptionif no provider with the specified name can be found.
Javax.Crypto.NoSuchPaddingExceptionif the requested padding scheme in the transformation is not available.
Java.Lang.IllegalArgumentExceptionif the specified provider is null.

Remarks

Creates a new cipher for the specified transformation provided by the specified provider.

[Android Documentation]

Requirements

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