Table of Contents

Class MdocErrorCodes

Namespace
Tessio.Verifier.Core.Mdoc
Assembly
Tessio.Verifier.Core.Mdoc.dll

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

string

CredentialExpired

The MSO validity window has passed (shared with Core).

public const string CredentialExpired = "credential_expired"

Field Value

string

CredentialNotYetValid

The MSO validity window has not started (shared with Core).

public const string CredentialNotYetValid = "credential_not_yet_valid"

Field Value

string

DeviceAuthInvalid

The device signature over the session transcript does not verify.

public const string DeviceAuthInvalid = "mdoc_device_auth_invalid"

Field Value

string

DigestMismatch

A disclosed item's digest does not appear in the MSO's valueDigests.

public const string DigestMismatch = "mdoc_digest_mismatch"

Field Value

string

DocTypeMismatch

The document's docType does not match the requested doctype.

public const string DocTypeMismatch = "mdoc_doctype_mismatch"

Field Value

string

FormatUnsupported

The credential is not an mdoc (shared with Core).

public const string FormatUnsupported = "format_unsupported"

Field Value

string

IssuerKeyUnresolvable

The Document Signer key could not be resolved from x5chain (shared with Core).

public const string IssuerKeyUnresolvable = "issuer_key_unresolvable"

Field Value

string

IssuerUntrusted

The issuer does not chain to a configured trust anchor (shared with Core).

public const string IssuerUntrusted = "issuer_untrusted"

Field Value

string

MsoInvalid

The MSO is malformed or carries unsupported values.

public const string MsoInvalid = "mdoc_mso_invalid"

Field Value

string

SignatureInvalid

The issuerAuth signature does not verify (shared with Core).

public const string SignatureInvalid = "signature_invalid"

Field Value

string

StructureInvalid

Malformed base64url, CBOR or a missing required element (shared with Core).

public const string StructureInvalid = "structure_invalid"

Field Value

string