RequesterHistory
interface RequesterHistory
Tracks past credential presentment interactions with relying parties (requesters).
Unlike org.multipaz.eventlogger.EventLogger, which records detailed audit logs of individual presentment sessions and payloads, RequesterHistory stores only lightweight interaction counts and timestamps per identifiable requester so the consent prompt can surface whether the user has shared with a relying party before.
See SimpleRequesterHistory for an implementation backed by org.multipaz.storage.Storage.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun getEntry(requester: Requester, trustedRequesterIdentity: TrustedRequesterIdentity?): RequesterHistoryEntry?
Looks up past interaction history for the given requester and trustedRequesterIdentity.
Link copied to clipboard
abstract suspend fun recordShare(requester: Requester, trustedRequesterIdentity: TrustedRequesterIdentity?)
Records a completed credential share with the given requester and trustedRequesterIdentity.