CredentialState
class CredentialState(val issuanceStateId: String, val keyId: String?, val format: CredentialFormat, var creation: Instant, var expiration: Instant)
Data about an issued and not yet expired credential.
Credentials are identified by their index, which is assigned randomly but aims to be relatively small. This index is used in the status list to support credential revocation.
Note that credential status is stored separately to facilitate quick enumeration through all non-zero status codes (to facilitate status list creation).
Parameters
issuanceStateId
identifies IssuanceState to which this credential belongs
keyId
identifies the key to which the credential is bound, assigned by the client (equal to the credential id in Multipaz client implementation) or created by hashing the public key if client key id was not supplied; must be null for non-key-bound credentials
creation
credential creation time
expiration
credential expiration time
Constructors
Link copied to clipboard
constructor(issuanceStateId: String, keyId: String?, format: CredentialFormat, creation: Instant, expiration: Instant)