Language

Message Constructors

Definition

Overloads

Name Description
Message(Byte[], Byte[])

Creates a message containing the supplied encapsulated key and ciphertext.

Message(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

Message(Byte[], Byte[])

Creates a message containing the supplied encapsulated key and ciphertext.

[Android.Runtime.Register(".ctor", "([B[B)V", "", ApiSince=37)]
public Message(byte[] encapsulated, byte[] ciphertext);
[<Android.Runtime.Register(".ctor", "([B[B)V", "", ApiSince=37)>]
new Android.Crypto.Hpke.Message : byte[] * byte[] -> Android.Crypto.Hpke.Message

Parameters

encapsulated
Byte[]

The encapsulated-key bytes to store with the message.

ciphertext
Byte[]

The ciphertext bytes to store with the message.

Attributes

Remarks

The Java constructor records the two arrays without performing an encryption operation.

Applies to

Message(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

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

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to