Share via


Mac Constructors

Definition

Overloads

Mac(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Mac(MacSpi, Provider, String)

Creates a MAC object.

Mac(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Mac (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Crypto.Mac : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Crypto.Mac

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

Mac(MacSpi, Provider, String)

Creates a MAC object.

[Android.Runtime.Register(".ctor", "(Ljavax/crypto/MacSpi;Ljava/security/Provider;Ljava/lang/String;)V", "")]
protected Mac (Javax.Crypto.MacSpi? macSpi, Java.Security.Provider? provider, string? algorithm);
[<Android.Runtime.Register(".ctor", "(Ljavax/crypto/MacSpi;Ljava/security/Provider;Ljava/lang/String;)V", "")>]
new Javax.Crypto.Mac : Javax.Crypto.MacSpi * Java.Security.Provider * string -> Javax.Crypto.Mac

Parameters

macSpi
MacSpi

the delegate

provider
Provider

the provider

algorithm
String

the algorithm

Attributes

Remarks

Creates a MAC object.

Java documentation for javax.crypto.Mac.Mac(javax.crypto.MacSpi, java.security.Provider, java.lang.String).

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