setActiveCredential

fun setActiveCredential(documentSlot: Int, encryptedPresentationData: ByteArray?)

Sets the credential represented by the encryptedPresentationData as the active credential in the slot (ie. it would be the one used during presentation). If encryptedPresentationData is null, clears active credential.

This is called during DirectAccessCredential.setAsActiveCredential, so there is no need to call this explicitly when dealing with DirectAccessCredentials.

Parameters

documentSlot

the slot

encryptedPresentationData

the data representing the provisioned credential.

Throws

on failure