Class MdocErrorCodes
Stable error codes for mdoc verification failures, alongside the shared codes in ErrorCodes (structure_invalid, signature_invalid, issuer_untrusted, …).
public static class MdocErrorCodes
- Inheritance
-
MdocErrorCodes
- Inherited Members
Fields
AlgorithmNotAllowed
The COSE signature algorithm is not on the allowlist (shared with Core).
public const string AlgorithmNotAllowed = "algorithm_not_allowed"
Field Value
CredentialExpired
The MSO validity window has passed (shared with Core).
public const string CredentialExpired = "credential_expired"
Field Value
CredentialNotYetValid
The MSO validity window has not started (shared with Core).
public const string CredentialNotYetValid = "credential_not_yet_valid"
Field Value
DeviceAuthInvalid
The device signature over the session transcript does not verify.
public const string DeviceAuthInvalid = "mdoc_device_auth_invalid"
Field Value
DigestMismatch
A disclosed item's digest does not appear in the MSO's valueDigests.
public const string DigestMismatch = "mdoc_digest_mismatch"
Field Value
DocTypeMismatch
The document's docType does not match the requested doctype.
public const string DocTypeMismatch = "mdoc_doctype_mismatch"
Field Value
FormatUnsupported
The credential is not an mdoc (shared with Core).
public const string FormatUnsupported = "format_unsupported"
Field Value
IssuerKeyUnresolvable
The Document Signer key could not be resolved from x5chain (shared with Core).
public const string IssuerKeyUnresolvable = "issuer_key_unresolvable"
Field Value
IssuerUntrusted
The issuer does not chain to a configured trust anchor (shared with Core).
public const string IssuerUntrusted = "issuer_untrusted"
Field Value
MsoInvalid
The MSO is malformed or carries unsupported values.
public const string MsoInvalid = "mdoc_mso_invalid"
Field Value
SignatureInvalid
The issuerAuth signature does not verify (shared with Core).
public const string SignatureInvalid = "signature_invalid"
Field Value
StructureInvalid
Malformed base64url, CBOR or a missing required element (shared with Core).
public const string StructureInvalid = "structure_invalid"