DirectAccess
A class which handles common operations related to the DirectAccess applet.
Properties
Functions
Allocates space (a slot) in the Direct Access applet for a document to be provisioned to.
Certifies the credential with the given encryptedPresentationData and returns the updated encryptedPresentationData.
Resets the usage count of the credential in the slot to 0.
Clears a slot.
Creates a credential at the given slot.
Enumerates slots which have already been allocated.
Returns the number of times the credential in the slot has been used in a presentation since it was set as the active credential or since the usage count was reset with clearCredentialUsageCount.
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.
Use this function to ensure the transport is initialized (since Kotlin singletons are initialized on first access) so that the app can begin connecting to the applet in the background.