IssuedCredential class
The receipt for a successfully-minted Verifiable Credential: a stable handle for
revocation and audit, the signed credential itself, and when it lapses. SCOPE —
this is an issuance receipt, returned by the party that minted the credential. It
is not the shape for a delivery receipt, where a holder hands an already-issued
credential to a party that stores it: such a task returns a receipt naming what was
stored (see vtc/members/vmc and vtc/join-requests/accept) and MUST NOT echo the
credential back to the party that just sent it. Reaching for this definition on a
delivery task is the mistake this paragraph exists to prevent.
additionalProperties is false, so a specification needing extra members cannot
compose this by $ref — allOf evaluates each subschema against the whole object
and this one would reject them. vta/credentials/issue is that case: its response is
this shape plus supersedes and ext, and it therefore states the members inline
while $ref-ing the shared CredentialId. That is deliberate, not drift.
Constructors
-
IssuedCredential({required CredentialId credentialId, required Map<
String, dynamic> credential, String? issuedAt, required String expiresAt}) -
const
-
IssuedCredential.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
-
credential
→ Map<
String, dynamic> -
The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's
key. Opaque to the framework.
final
- credentialId → CredentialId
-
final
- expiresAt → CredentialId
-
When the credential's validUntil falls due.
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