CredentialReference class
A pointer to an issued credential, without the credential itself. The counterpart
to IssuedCredential, for the far more common case of reading about a credential
rather than being handed one. A listing that embedded the signed credential in
every row would grow with the size of the credentials rather than the number of
them — a page of fifty is megabytes — and a reader that only needs to know a
credential exists, when it lapses, and how to revoke it does not need the bytes.
The holder can always fetch the credential itself by credentialId, and a verifier
can check revocation from the row's status-list slot without either. Reach for
IssuedCredential only at the moment of minting, where the caller has no other way
to receive what was just made for them.
Constructors
- CredentialReference({required CredentialId credentialId, String? issuedAt, String? expiresAt})
-
const
-
CredentialReference.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- credentialId → CredentialId
-
final
- expiresAt → String?
-
When it lapses, or null when it does not.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuedAt → String?
-
When the credential was minted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → CredentialId -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited