Table of Contents

Class UtiValidator

Namespace
Virtufin.Base
Assembly
Virtufin.Base.dll

Validates ISDA Universal Transaction Identifier (UTI) payloads.

public static class UtiValidator
Inheritance
UtiValidator
Inherited Members

Remarks

Format rules (from the ISDA UTI guidance):

  • Length between 1 and 52 characters.
  • Characters: alphanumeric or one of -_=:.
  • Non-empty.

Methods

TryValidate(string?, out string?)

Validate a candidate UTI without throwing.

public static bool TryValidate(string? value, out string? error)

Parameters

value string

Candidate UTI payload.

error string

Reason for rejection; null on success.

Returns

bool

true when value is a valid UTI.

Validate(string)

Validate a candidate UTI. Throws when the payload is invalid.

public static void Validate(string value)

Parameters

value string

Candidate UTI payload.

Exceptions

ArgumentException

Thrown when value is not a valid UTI.