Partager via


PresentationSession.SetSessionTranscript(Byte[]) Method

Definition

Set the session transcript.

[Android.Runtime.Register("setSessionTranscript", "([B)V", "GetSetSessionTranscript_arrayBHandler", ApiSince=33)]
public abstract void SetSessionTranscript (byte[] sessionTranscript);
[<Android.Runtime.Register("setSessionTranscript", "([B)V", "GetSetSessionTranscript_arrayBHandler", ApiSince=33)>]
abstract member SetSessionTranscript : byte[] -> unit

Parameters

sessionTranscript
Byte[]

the session transcript.

Attributes

Remarks

Set the session transcript.

If called, this must be called before any calls to #getCredentialData(String, CredentialDataRequest).

If mdoc session encryption is used (e.g. if #getEphemeralKeyPair() has been called) then the X and Y coordinates of the public part of the key-pair returned by #getEphemeralKeyPair() must appear somewhere in the bytes of the passed in CBOR. Each of these coordinates must appear encoded with the most significant bits first and use the exact amount of bits indicated by the key size of the ephemeral keys. For example, if the ephemeral key is using the P-256 curve then the 32 bytes for the X coordinate encoded with the most significant bits first must appear somewhere and ditto for the 32 bytes for the Y coordinate.

This method can only be called once per PresentationSession instance.

Java documentation for android.security.identity.PresentationSession.setSessionTranscript(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