OID4VCIClaimContext class
Represents the context required to claim a credential.
This class combines the issuer metadata and credential offer information required to successfully claim a verifiable credential from an issuer.
Example:
final context = OID4VCIClaimContext(
issuerMetadata: OID4VCIIssuerMetadata(
tokenEndpoint: 'https://issuer.example.com/token',
credentialEndpoint: 'https://issuer.example.com/credential',
returnUris: [],
),
credentialOffer: OID4VCICredentialOffer(
credentialIdentifier: 'credential123',
preAuthCode: 'auth456',
isTxCodeRequired: false,
),
);
Constructors
- OID4VCIClaimContext({required OID4VCIIssuerMetadata issuerMetadata, required OID4VCICredentialOffer credentialOffer})
-
Creates a new OID4VCIClaimContext instance.
const
Properties
- credentialOffer → OID4VCICredentialOffer
-
Contains the details of the credential being offered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuerMetadata → OID4VCIIssuerMetadata
-
Provides information about the credential issuer.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited