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

Syntax

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

Parameters

key
the key to initialize this algorithm.
params
the parameters for this algorithm.

Exceptions

TypeReason
Java.Security.InvalidKeyExceptionif the specified key cannot be used to initialize this algorithm, or it is null.
Java.Security.InvalidAlgorithmParameterExceptionif the specified parameters cannot be used to initialize this algorithm.

Remarks

Initializes this Mac instance with the specified key and algorithm parameters.

[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