IssuerCredentialStore

Stores all issued credentials, keeps track of the index for the revocation list

Functions

Link copied to clipboard
abstract fun getRevokedStatusListIndexList(timePeriod: Int): Collection<Long>

Returns a list of revoked credentials, represented by their statusListIndex

Link copied to clipboard
abstract fun revoke(vcId: String, timePeriod: Int): Boolean

Revoke the credential with this vcId, if it exists

Link copied to clipboard
abstract fun storeGetNextIndex(vcId: String, credentialSubject: CredentialSubject, issuanceDate: Instant, expirationDate: Instant, timePeriod: Int): Long?

Called by the issuer when creating a new credential. Expected to return a new index to use as a statusListIndex Returns null if vcId is already registered

Inheritors

Link copied to clipboard