IdentityCredential.EncryptMessageToReader(Byte[]) Method

Definition

Encrypt a message for transmission to the reader.

[Android.Runtime.Register("encryptMessageToReader", "([B)[B", "GetEncryptMessageToReader_arrayBHandler", ApiSince=30)]
public abstract byte[] EncryptMessageToReader (byte[] messagePlaintext);
[<Android.Runtime.Register("encryptMessageToReader", "([B)[B", "GetEncryptMessageToReader_arrayBHandler", ApiSince=30)>]
abstract member EncryptMessageToReader : byte[] -> byte[]

Parameters

messagePlaintext
Byte[]

unencrypted message to encrypt.

Returns

Byte[]

encrypted message.

Attributes

Remarks

Encrypt a message for transmission to the reader.

Do not use. In this version of the API, this method produces an incorrect result. Instead, applications should implement message encryption/decryption themselves as detailed in the #createEphemeralKeyPair() method. In a future API-level, this method will be deprecated.

This member is deprecated. Applications should use PresentationSession and implement encryption/decryption themselves.

Java documentation for android.security.identity.IdentityCredential.encryptMessageToReader(byte[]).

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