Javax.Crypto.Mac.GetInstance Method
Creates a new Mac instance that provides the specified MAC algorithm.

Syntax

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

Parameters

algorithm
the name of the requested MAC algorithm.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.NoSuchAlgorithmExceptionif the specified algorithm is not available by any provider.
Java.Lang.NullPointerExceptionif algorithm is null (instead of NoSuchAlgorithmException as in 1.4 release).

Remarks

Creates a new Mac instance that provides the specified MAC algorithm.

[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