Mac.Init Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Init(IKey, IAlgorithmParameterSpec) |
Initializes this <code>Mac</code> object with the given key and algorithm parameters. |
| Init(IKey) |
Initializes this <code>Mac</code> object with the given key. |
Init(IKey, IAlgorithmParameterSpec)
Initializes this <code>Mac</code> 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
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 <code>Mac</code> 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
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.