Skip to content
Verifiabl

.NET verifier SDK: Verification

Interface in Verifiabl.Verifier

Verifies an already-extracted payload with the Verifiabl API. Depend on this interface to substitute a fake or decorate the client.

The interface has one method, so fakes and decorators stay small. Later versions add per-verification details to Verifiabl.Verifier.VerificationRequest, not new members here. To retry a verification, send the same Verifiabl.Verifier.VerificationRequest again, so every attempt carries its idempotency key.

public interface IVerifierClient

VerifyAsync(VerificationRequest, CancellationToken)

Section titled “VerifyAsync(VerificationRequest, CancellationToken)”

Method

Return the payslip data the issuer registered for an extracted payload.

Task<VerificationResult> VerifyAsync(VerificationRequest request, CancellationToken cancellationToken = default)
Parameter Type Description
request Verifiabl.Verifier.VerificationRequest The extracted payload to verify.
cancellationToken System.Threading.CancellationToken Cancels the call.

Returns: System.Threading.Tasks.Task{Verifiabl.Verifier.VerificationResult}, The verified data, not an assessment of the document’s visible contents. Your integration decides how to interpret, compare or map it.

Exceptions

Type Condition
System.ArgumentNullException request is null.
Verifiabl.Verifier.VerifierRejectedException The barcode could not be verified, including empty or over-long text.
Verifiabl.Verifier.VerifierAuthException Authentication could not be completed. Check Verifiabl.Verifier.VerifierException.IsRetryable before changing credentials.
Verifiabl.Verifier.VerifierServiceException Verifiabl returned an error, such as an outage or rate limit.
Verifiabl.Verifier.VerifierException Any failure, including timeouts and transport faults. Check Verifiabl.Verifier.VerifierException.IsRetryable.

Class in Verifiabl.Verifier

Thrown by an optional extraction package, such as Verifiabl.Verifier.Extraction, when no single Verifiabl payload could be read from a document or image. Nothing was sent to Verifiabl.

No payload was verified, and this is not a failed verification. The input may not carry a Verifiabl payload, or the copy may be too poor to read; Verifiabl.Verifier.PayloadExtractionException.Failure says which. Messages never contain payload text.

public sealed class PayloadExtractionException : VerifierException, ISerializable

Inheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException

Implements: System.Runtime.Serialization.ISerializable

PayloadExtractionException(PayloadExtractionFailure, string, Exception?)

Section titled “PayloadExtractionException(PayloadExtractionFailure, string, Exception?)”

Constructor

Create an instance for an extraction package, adapter or test fake.

Keep the message and cause free of payloads, images and personal data.

public PayloadExtractionException(PayloadExtractionFailure failure, string message, Exception? innerException = null)
Parameter Type Description
failure Verifiabl.Verifier.PayloadExtractionFailure
message System.String
innerException System.Exception

Property

Why extraction failed.

public PayloadExtractionFailure Failure { get; }

Returns: Verifiabl.Verifier.PayloadExtractionFailure

Property

True only for Verifiabl.Verifier.PayloadExtractionFailure.TimedOut, which may succeed with less load. Other failures repeat for the same input.

public override bool IsRetryable { get; }

Returns: System.Boolean

Enum in Verifiabl.Verifier

Why a Verifiabl.Verifier.PayloadExtractionException was thrown.

Later versions may add values; treat unknown values like Verifiabl.Verifier.PayloadExtractionFailure.Unreadable.

public enum PayloadExtractionFailure

Field

The input holds no readable Verifiabl payload.

NotFound = 0

Returns: Verifiabl.Verifier.PayloadExtractionFailure

Field

The input holds two different Verifiabl payloads in the same kind of copy, such as two QR codes. Verify each payslip separately.

Ambiguous = 1

Returns: Verifiabl.Verifier.PayloadExtractionFailure

Field

The input is larger or more complex than a payslip needs, so it was not read in full.

LimitExceeded = 2

Returns: Verifiabl.Verifier.PayloadExtractionFailure

Field

The input could not be parsed at all, such as a damaged or encrypted PDF.

Unreadable = 3

Returns: Verifiabl.Verifier.PayloadExtractionFailure

Field

Extraction did not finish within its time budget.

TimedOut = 4

Returns: Verifiabl.Verifier.PayloadExtractionFailure

Class in Verifiabl.Verifier

Recognises Verifiabl payload text found in documents.

These checks only pick Verifiabl candidates out of a page and tell whether two candidates carry the same payload. They do not validate a payload; send it to Verifiabl.Verifier.IVerifierClient.VerifyAsync(Verifiabl.Verifier.VerificationRequest,System.Threading.CancellationToken) unchanged and let the API decide.

public static class VerifiablPayloadText

Inheritance: System.Object

Method

Whether text is shaped like a Verifiabl payload: a bare 1|… or 2|… payload, an https scan link on a verifiabl.io host, or an https scan link on any host that carries a complete payload (/v/<reference>#<version>.<ciphertext>), as issuers produce with a custom scan origin. Other QR codes on a page, such as an issuer’s own, are not. Scan links are never fetched.

public static bool IsVerifiablShaped(string text)
Parameter Type Description
text System.String

Returns: System.Boolean

Method

Whether two payload texts carry the same payload, such as two QR codes found on one document. A scan link and a bare payload match when their version, reference and ciphertext agree. Other texts must match exactly.

public static bool AreSamePayload(string first, string second)
Parameter Type Description
first System.String
second System.String

Returns: System.Boolean

Class in Verifiabl.Verifier

What to verify: an extracted payload and its idempotency key.

To retry a verification later, keep the request and send the same instance again. It sends the same Verifiabl.Verifier.VerificationRequest.IdempotencyKey, so Verifiabl charges the verification once.

The barcode is encrypted, but treat it as sensitive and keep it out of logs. Verifiabl.Verifier.VerificationRequest.ToString omits it.

public sealed class VerificationRequest

Inheritance: System.Object

Constructor

Create a request for barcode text extracted from a QR code or PDF metadata.

public VerificationRequest(string barcode)
Parameter Type Description
barcode System.String A scan link such as https://v.verifiabl.io/v/…#2.…, or a bare payload such as 2|…|…. Pass it unchanged; do not trim, decode or fetch the link. Empty or over-long text is rejected by Verifiabl.Verifier.IVerifierClient.VerifyAsync(Verifiabl.Verifier.VerificationRequest,System.Threading.CancellationToken), not here, because extracted text is untrusted input rather than a programming error.

Exceptions

Type Condition
System.ArgumentNullException barcode is null.

Property

The extracted barcode text, sent to Verifiabl unchanged.

public string Barcode { get; }

Returns: System.String

Property

The key that identifies this verification to Verifiabl. Each new request gets a new key. Every attempt sends it in the Idempotency-Key header.

A retry with the same key and payslip within 1 hour of the key’s first use is not charged again.

Set this property only to retry a verification from a new request, such as after a restart. Save the key before the first attempt. Do not use one key for different verifications. A key used for a different payslip, or first used more than 1 hour ago, causes Verifiabl.Verifier.VerifierErrorCodes.IdempotencyKeyReused.

Store the key with your decision. Use it to ask Verifiabl about this verification or its charge.

public Guid IdempotencyKey { get; init; }

Returns: System.Guid

Exceptions

Type Condition
System.ArgumentException The value is not a version 1 to 8 UUID, such as one from System.Guid.NewGuid.

Method

A description without the barcode, so the request is safe to log.

public override string ToString()

Returns: System.String

Class in Verifiabl.Verifier

The data the issuer registered, returned for a verified payload. It is not an assessment of a document.

Verifiabl.Verifier.VerificationResult.Employee holds personal information. Keep it out of logs. Verifiabl.Verifier.VerificationResult.ToString omits it and the payslip values.

public sealed class VerificationResult

Inheritance: System.Object

VerificationResult(string, string?, JsonElement, JsonElement, DateTimeOffset)

Section titled “VerificationResult(string, string?, JsonElement, JsonElement, DateTimeOffset)”

Constructor

Create a result for an adapter or test fake. This does not perform verification.

JSON objects are cloned so they outlive their source documents. Unknown schemas and fields are preserved; no verifier-specific mapping is applied.

public VerificationResult(string verifiablReference, string? schema, JsonElement payslip, JsonElement employee, DateTimeOffset decryptedAt)
Parameter Type Description
verifiablReference System.String
schema System.String
payslip System.Text.Json.JsonElement
employee System.Text.Json.JsonElement
decryptedAt System.DateTimeOffset

Property

The payslip’s Verifiabl reference.

public string VerifiablReference { get; }

Returns: System.String

Property

The payslip schema, such as au.payslip.v2, when the API sends one.

public string? Schema { get; }

Returns: System.String

Property

The registered payslip record: schema, issued_at and payslip_non_pii, as the API returns them. Money values are decimal strings.

public JsonElement Payslip { get; }

Returns: System.Text.Json.JsonElement

Property

The employee details decrypted from the barcode, as the API returns them.

public JsonElement Employee { get; }

Returns: System.Text.Json.JsonElement

Property

When Verifiabl decrypted the barcode.

public DateTimeOffset DecryptedAt { get; }

Returns: System.DateTimeOffset

Property

The successful response’s X-Request-Id. Keep it so Verifiabl support can find this verification.

public string? RequestId { get; init; }

Returns: System.String

Property

The Verifiabl.Verifier.VerificationRequest.IdempotencyKey sent for this verification. Store it with your decision. Use it to ask Verifiabl about this verification or its charge.

public Guid? IdempotencyKey { get; init; }

Returns: System.Nullable{System.Guid}

Method

The reference and schema only, so the result is safe to log.

public override string ToString()

Returns: System.String

Class in Verifiabl.Verifier

How a Verifiabl.Verifier.VerifierClient authenticates to the Verifiabl API.

Pass the OAuth client ID and secret from your verifier onboarding to Verifiabl.Verifier.VerifierAuth.ClientCredentials(System.String,System.String,System.Uri). The client fetches, caches and refreshes access tokens itself.

public abstract class VerifierAuth

Inheritance: System.Object

Method

OAuth client credentials issued by Verifiabl during verifier onboarding.

public static VerifierAuth ClientCredentials(string clientId, string clientSecret, Uri? tokenUrl = null)
Parameter Type Description
clientId System.String OAuth client ID.
clientSecret System.String OAuth client secret. Keep it out of logs and source control.
tokenUrl System.Uri Token endpoint override for local development. Must be a Verifiabl auth host over https, or localhost. Leave unset to use the environment’s endpoint.

Returns: Verifiabl.Verifier.VerifierAuth

Class in Verifiabl.Verifier

Thrown when authentication could not be completed: the OAuth token request failed, or the verification API answered 401 or 403. Check Verifiabl.Verifier.VerifierException.IsRetryable first; for non-retryable failures, check credentials, environment and permissions.

public sealed class VerifierAuthException : VerifierException, ISerializable

Inheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException

Implements: System.Runtime.Serialization.ISerializable

Constructor

Create an instance for an adapter or test fake. Keep messages free of sensitive data.

public VerifierAuthException(string message)
Parameter Type Description
message System.String

Constructor

Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.

public VerifierAuthException(string message, Exception? innerException)
Parameter Type Description
message System.String
innerException System.Exception

Property

HTTP status of the failed response, when there was one.

public int? Status { get; init; }

Returns: System.Nullable{System.Int32}

Property

Verifiabl.Verifier.VerifierErrorCodes.Unauthorized or Verifiabl.Verifier.VerifierErrorCodes.Forbidden when the verification API refused the call. Null for token endpoint failures.

public string? Code { get; init; }

Returns: System.String

Property

True when the token endpoint was unreachable, sent an unreadable response or returned 408, 429 or 5xx. Other statuses mean the credentials, permissions or token URL need fixing.

public override bool IsRetryable { get; }

Returns: System.Boolean

Class in Verifiabl.Verifier

Client for the Verifiabl verification API.

Create one client and reuse it. It is thread-safe and caches OAuth tokens. The SDK sends extracted payload text unchanged, holds no decryption keys and does not log the payload or result. It does not inspect document contents.

public sealed class VerifierClient : IVerifierClient

Inheritance: System.Object

Implements: Verifiabl.Verifier.IVerifierClient

Field

The longest barcode text the API accepts. Longer text throws Verifiabl.Verifier.VerifierRejectedException without a request.

Read-only rather than constant, so applications use the limit of the SDK version they run with, not the one they compiled against.

public static readonly int MaxBarcodeLength

Returns: System.Int32

Constructor

Create a client. See Verifiabl.Verifier.VerifierClientOptions.

public VerifierClient(VerifierClientOptions options)
Parameter Type Description
options Verifiabl.Verifier.VerifierClientOptions

VerifyAsync(VerificationRequest, CancellationToken)

Section titled “VerifyAsync(VerificationRequest, CancellationToken)”

Method

Return the payslip data the issuer registered for an extracted payload.

public Task<VerificationResult> VerifyAsync(VerificationRequest request, CancellationToken cancellationToken = default)
Parameter Type Description
request Verifiabl.Verifier.VerificationRequest The extracted payload to verify.
cancellationToken System.Threading.CancellationToken Cancels the call.

Returns: System.Threading.Tasks.Task{Verifiabl.Verifier.VerificationResult}, The verified data, not an assessment of the document’s visible contents. Your integration decides how to interpret, compare or map it.

Exceptions

Type Condition
System.ArgumentNullException request is null.
Verifiabl.Verifier.VerifierRejectedException The barcode could not be verified, including empty or over-long text.
Verifiabl.Verifier.VerifierAuthException Authentication could not be completed. Check Verifiabl.Verifier.VerifierException.IsRetryable before changing credentials.
Verifiabl.Verifier.VerifierServiceException Verifiabl returned an error, such as an outage or rate limit.
Verifiabl.Verifier.VerifierException Any failure, including timeouts and transport faults. Check Verifiabl.Verifier.VerifierException.IsRetryable.

Class in Verifiabl.Verifier

Options for constructing a Verifiabl.Verifier.VerifierClient.

public sealed class VerifierClientOptions

Inheritance: System.Object

Property

How to authenticate. Required. See Verifiabl.Verifier.VerifierAuth.

public VerifierAuth? Auth { get; set; }

Returns: Verifiabl.Verifier.VerifierAuth

Property

API environment. Defaults to production.

public VerifierEnvironment Environment { get; set; }

Returns: Verifiabl.Verifier.VerifierEnvironment

Property

Verification API origin override for local development. Most integrations leave this unset and use Verifiabl.Verifier.VerifierClientOptions.Environment. Must use https, except localhost may use http.

public Uri? VerifierBaseUrl { get; set; }

Returns: System.Uri

Property

Deadline for each verification, including token fetches and retries. Defaults to 30 seconds.

public TimeSpan Timeout { get; set; }

Returns: System.TimeSpan

Property

Maximum automatic retries after the first attempt. Defaults to 2; set 0 to disable. Rate limits, timeouts, 5xx responses and network faults are retried with exponential backoff, honouring Retry-After. A retry whose wait would outlast Verifiabl.Verifier.VerifierClientOptions.Timeout is skipped, and the last failure is thrown with its Verifiabl.Verifier.VerifierException.RetryAfter.

public int MaxRetries { get; set; }

Returns: System.Int32

Property

The System.Net.Http.HttpClient to send requests with. The SDK never disposes it. When unset, a shared internal client is used. The SDK applies its own deadline, so leave the client’s Timeout at infinite.

public HttpClient? HttpClient { get; set; }

Returns: System.Net.Http.HttpClient

Enum in Verifiabl.Verifier

The Verifiabl environment a Verifiabl.Verifier.VerifierClient calls.

public enum VerifierEnvironment

Field

Live payslips. The default.

Production = 0

Returns: Verifiabl.Verifier.VerifierEnvironment

Field

Test payslips that sandbox issuers registered.

Sandbox = 1

Returns: Verifiabl.Verifier.VerifierEnvironment

Class in Verifiabl.Verifier

Error codes in Verifiabl.Verifier.VerifierRejectedException.Code, Verifiabl.Verifier.VerifierAuthException.Code and Verifiabl.Verifier.VerifierServiceException.Code.

public static class VerifierErrorCodes

Inheritance: System.Object

Field

The payload could not be verified: the barcode text is unreadable, fails decryption, or has no registered payslip. The API does not say which. Thrown as Verifiabl.Verifier.VerifierRejectedException.

public const string NotVerified = "NOT_VERIFIED"

Returns: System.String

Field

The request was malformed, so the SDK and API disagree about its format. Thrown as a non-retryable Verifiabl.Verifier.VerifierServiceException with Verifiabl.Verifier.VerifierServiceException.FieldErrors.

public const string ValidationFailed = "VALIDATION_FAILED"

Returns: System.String

Field

The access token was missing or invalid, even after a refresh. Thrown as Verifiabl.Verifier.VerifierAuthException.

public const string Unauthorized = "UNAUTHORIZED"

Returns: System.String

Field

The credentials cannot verify payslips. Thrown as Verifiabl.Verifier.VerifierAuthException.

public const string Forbidden = "FORBIDDEN"

Returns: System.String

Field

The request body is larger than the API accepts. The client limits the barcode length first, so this is a non-retryable Verifiabl.Verifier.VerifierServiceException.

public const string PayloadTooLarge = "PAYLOAD_TOO_LARGE"

Returns: System.String

Field

The request content type is not supported. Thrown as a non-retryable Verifiabl.Verifier.VerifierServiceException.

public const string UnsupportedMediaType = "UNSUPPORTED_MEDIA_TYPE"

Returns: System.String

Field

The Verifiabl.Verifier.VerificationRequest.IdempotencyKey was used for a different payslip, or first used more than 1 hour ago. Nothing was verified or charged. Thrown as a non-retryable Verifiabl.Verifier.VerifierServiceException. To verify again, use a new Verifiabl.Verifier.VerificationRequest.

public const string IdempotencyKeyReused = "IDEMPOTENCY_KEY_REUSED"

Returns: System.String

Field

Too many requests. Retried automatically up to Verifiabl.Verifier.VerifierClientOptions.MaxRetries.

public const string RateLimited = "RATE_LIMITED"

Returns: System.String

Field

An unexpected server error, or a response with no Verifiabl error body. Retried automatically.

public const string InternalError = "INTERNAL_ERROR"

Returns: System.String

Field

A Verifiabl dependency is unavailable. Retried automatically.

public const string ServiceUnavailable = "SERVICE_UNAVAILABLE"

Returns: System.String

Class in Verifiabl.Verifier

Base type for every failure a Verifiabl.Verifier.VerifierClient or a Verifiabl extraction package reports, so one catch (VerifierException) covers them all.

Verifiabl.Verifier.VerifierRejectedException means the payload could not be verified. Verifiabl.Verifier.PayloadExtractionException means no payload could be read from a document, so nothing was verified. Every other subtype is an operational failure; check Verifiabl.Verifier.VerifierException.IsRetryable to decide whether to try again later. Do not put payloads, payslip data or credentials in custom messages or causes. A null request throws System.ArgumentNullException, and a cancellation you requested throws System.OperationCanceledException.

The set of subtypes is closed: extraction packages throw Verifiabl.Verifier.PayloadExtractionException rather than defining their own, so the catch sequence in the README stays complete.

Public constructors take only the values that define a failure. Set optional diagnostics such as Verifiabl.Verifier.VerifierException.RequestId with an object initializer, so new diagnostics never change a constructor signature.

public abstract class VerifierException : Exception, ISerializable

Inheritance: System.Object → System.Exception

Implements: System.Runtime.Serialization.ISerializable

Property

Whether the same call may succeed later, such as after an outage or rate limit. It does not show whether the previous attempt completed. To retry, send the same Verifiabl.Verifier.VerificationRequest again, so Verifiabl does not charge twice. Verification requests may already have retried up to Verifiabl.Verifier.VerifierClientOptions.MaxRetries times; token-endpoint failures are not automatically retried.

public abstract bool IsRetryable { get; }

Returns: System.Boolean

Property

The API response’s X-Request-Id, from the last attempt when the call was retried. Quote it to Verifiabl support. Null when no API response was handled, such as for token-endpoint and network failures.

public string? RequestId { get; init; }

Returns: System.String

Property

Server-requested delay before another attempt, measured when the response was handled. Null when no positive, valid Retry-After was supplied. This is not permission to retry: also check Verifiabl.Verifier.VerifierException.IsRetryable and your deadline.

public TimeSpan? RetryAfter { get; init; }

Returns: System.Nullable{System.TimeSpan}

Property

The Verifiabl.Verifier.VerificationRequest.IdempotencyKey of the failed call. The verification can complete even when the call fails. Quote the key when you ask Verifiabl about the verification or its charge. Null when the SDK did not start a verification call: for a Verifiabl.Verifier.PayloadExtractionException, and when Verifiabl.Verifier.VerifierClient rejects empty or over-long text.

public Guid? IdempotencyKey { get; init; }

Returns: System.Nullable{System.Guid}

Class in Verifiabl.Verifier

A request field that failed validation.

public sealed class VerifierFieldError

Inheritance: System.Object

Constructor

Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.

public VerifierFieldError(string path, string message)
Parameter Type Description
path System.String
message System.String

Property

The field, such as barcode.

public string Path { get; }

Returns: System.String

Property

Why it failed.

public string Message { get; }

Returns: System.String

Class in Verifiabl.Verifier

Thrown when the payload could not be verified. The text cannot be read, Verifiabl has no record of it, its issuer has no active key, or it does not decrypt to a valid payslip payload; the API does not say which. A damaged scan or a code from another product or environment gives the same result. Sending the same text again usually gives the same answer, so it is not retryable.

Verifiabl.Verifier.VerifierRejectedException.Code is Verifiabl.Verifier.VerifierErrorCodes.NotVerified. Quote Verifiabl.Verifier.VerifierException.RequestId to Verifiabl support to find the cause.

public sealed class VerifierRejectedException : VerifierException, ISerializable

Inheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException

Implements: System.Runtime.Serialization.ISerializable

Constructor

Create a rejection for an adapter or test fake.

Keep messages and detail free of payloads, payslip data and credentials.

public VerifierRejectedException(string code, string message)
Parameter Type Description
code System.String
message System.String

Property

Verifiabl.Verifier.VerifierErrorCodes.NotVerified.

public string Code { get; }

Returns: System.String

Property

HTTP status code, or null when the client checked the text without sending it.

public int? Status { get; init; }

Returns: System.Nullable{System.Int32}

Property

A finer cause, sent only by the issuer self-test routes so issuers can debug their own payslips. Verifier routes send none.

public string? Reason { get; init; }

Returns: System.String

Property

Extra detail, when the API sends it.

public string? Detail { get; init; }

Returns: System.String

Property

Whether the same call may succeed later, such as after an outage or rate limit. It does not show whether the previous attempt completed. To retry, send the same Verifiabl.Verifier.VerificationRequest again, so Verifiabl does not charge twice. Verification requests may already have retried up to Verifiabl.Verifier.VerifierClientOptions.MaxRetries times; token-endpoint failures are not automatically retried.

public override bool IsRetryable { get; }

Returns: System.Boolean

Class in Verifiabl.Verifier

Thrown when Verifiabl returns an error that is not a failed verification or about the credentials, such as an outage, a rate limit or a malformed request. Check Verifiabl.Verifier.VerifierException.IsRetryable, and quote Verifiabl.Verifier.VerifierException.RequestId to Verifiabl support. Match on Verifiabl.Verifier.VerifierServiceException.Code, not the message.

Payloads that could not be verified throw Verifiabl.Verifier.VerifierRejectedException, and 401 or 403 responses throw Verifiabl.Verifier.VerifierAuthException.

public sealed class VerifierServiceException : VerifierException, ISerializable

Inheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException

Implements: System.Runtime.Serialization.ISerializable

VerifierServiceException(int, string, string)

Section titled “VerifierServiceException(int, string, string)”

Constructor

Create a service failure for an adapter or test fake.

Keep messages, detail and field errors free of payloads, payslip data and credentials.

public VerifierServiceException(int status, string code, string message)
Parameter Type Description
status System.Int32
code System.String
message System.String

Property

HTTP status code.

public int Status { get; }

Returns: System.Int32

Property

Stable error code, such as Verifiabl.Verifier.VerifierErrorCodes.ServiceUnavailable. Verifiabl.Verifier.VerifierErrorCodes.InternalError when the response had no Verifiabl error body.

public string Code { get; }

Returns: System.String

Property

A finer reason for some codes, when the API sends one.

public string? Reason { get; init; }

Returns: System.String

Property

Extra detail, when the API sends it.

public string? Detail { get; init; }

Returns: System.String

Property

The request fields that failed validation. Empty for other errors.

public IReadOnlyList<VerifierFieldError> FieldErrors { get; init; }

Returns: System.Collections.Generic.IReadOnlyList{Verifiabl.Verifier.VerifierFieldError}

Property

True for 408, 429 and 5xx responses.

public override bool IsRetryable { get; }

Returns: System.Boolean

Class in Verifiabl.Verifier

Thrown when a verification exceeds Verifiabl.Verifier.VerifierClientOptions.Timeout, including token fetches and retries.

public sealed class VerifierTimeoutException : VerifierException, ISerializable

Inheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException

Implements: System.Runtime.Serialization.ISerializable

VerifierTimeoutException(string, TimeSpan)

Section titled “VerifierTimeoutException(string, TimeSpan)”

Constructor

Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.

public VerifierTimeoutException(string message, TimeSpan timeout)
Parameter Type Description
message System.String
timeout System.TimeSpan

Property

The deadline that was exceeded.

public TimeSpan Timeout { get; }

Returns: System.TimeSpan

Property

Whether the same call may succeed later, such as after an outage or rate limit. It does not show whether the previous attempt completed. To retry, send the same Verifiabl.Verifier.VerificationRequest again, so Verifiabl does not charge twice. Verification requests may already have retried up to Verifiabl.Verifier.VerifierClientOptions.MaxRetries times; token-endpoint failures are not automatically retried.

public override bool IsRetryable { get; }

Returns: System.Boolean

Class in Verifiabl.Verifier

Thrown when the request fails before a response arrives, or a 2xx response is not the shape the SDK expects. The cause is in System.Exception.InnerException.

public sealed class VerifierTransportException : VerifierException, ISerializable

Inheritance: System.Object → System.Exception → Verifiabl.Verifier.VerifierException

Implements: System.Runtime.Serialization.ISerializable

Constructor

Create a retryable failure for an adapter or test fake. Keep messages free of sensitive data.

public VerifierTransportException(string message)
Parameter Type Description
message System.String

VerifierTransportException(string, Exception?)

Section titled “VerifierTransportException(string, Exception?)”

Constructor

Create a retryable failure for an adapter or test fake. Keep messages and causes free of sensitive data.

public VerifierTransportException(string message, Exception? innerException)
Parameter Type Description
message System.String
innerException System.Exception

VerifierTransportException(string, Exception?, bool)

Section titled “VerifierTransportException(string, Exception?, bool)”

Constructor

Create an instance for an adapter or test fake. Keep messages and causes free of sensitive data.

public VerifierTransportException(string message, Exception? innerException, bool isRetryable)
Parameter Type Description
message System.String
innerException System.Exception
isRetryable System.Boolean

Property

HTTP status when a response arrived but could not be parsed; otherwise null.

public int? Status { get; init; }

Returns: System.Nullable{System.Int32}

Property

True for network faults. False when a 2xx response was malformed: the API answered, so a retry would likely get the same response. Quote Verifiabl.Verifier.VerifierException.RequestId to Verifiabl support.

public override bool IsRetryable { get; }

Returns: System.Boolean