Javax.Crypto.Mac.Init Method
Initializes this Mac instance with the specified key.

Syntax

[Android.Runtime.Register("init", "(Ljava/security/Key;)V", "")]
public void Init (Java.Security.IKey key)

Parameters

key
the key to initialize this algorithm.

Exceptions

TypeReason
Java.Security.InvalidKeyExceptionif initialization fails because the provided key is null.
Java.Lang.RuntimeExceptionif the specified key cannot be used to initialize this algorithm.

Remarks

Initializes this Mac instance with the specified key.

[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