Condividi tramite


Mac.Init Method

Definition

Overloads

Init(IKey, IAlgorithmParameterSpec)

Initializes this Mac object with the given key and algorithm parameters.

Init(IKey)

Initializes this Mac object with the given key.

Init(IKey, IAlgorithmParameterSpec)

Initializes this Mac object with the given key and algorithm parameters.

[Android.Runtime.Register("init", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "")]
public void Init (Java.Security.IKey? key, Java.Security.Spec.IAlgorithmParameterSpec? params);
[<Android.Runtime.Register("init", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "")>]
member this.Init : Java.Security.IKey * Java.Security.Spec.IAlgorithmParameterSpec -> unit

Parameters

key
IKey

the key.

params
IAlgorithmParameterSpec

the algorithm parameters.

Attributes

Exceptions

if the specified key cannot be used to initialize this algorithm, or it is null.

if the specified parameters cannot be used to initialize this algorithm.

Remarks

Initializes this Mac object with the given key and algorithm parameters.

Java documentation for javax.crypto.Mac.init(java.security.Key, java.security.spec.AlgorithmParameterSpec).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Init(IKey)

Initializes this Mac object with the given key.

[Android.Runtime.Register("init", "(Ljava/security/Key;)V", "")]
public void Init (Java.Security.IKey? key);
[<Android.Runtime.Register("init", "(Ljava/security/Key;)V", "")>]
member this.Init : Java.Security.IKey -> unit

Parameters

key
IKey

the key.

Attributes

Exceptions

if initialization fails because the provided key is null.

if the specified key cannot be used to initialize this algorithm.

Remarks

Initializes this Mac object with the given key.

Java documentation for javax.crypto.Mac.init(java.security.Key).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to