MrzCheck

One check the MRZ validator can run on a document, in the stable order the check records are reported in.

The entries cover every check digit a format can have (document number, date of birth, date of expiry, optional data or personal number, composite), the calendar-date checks for the date of birth and the date of expiry, and the sex character check.

Since

1.0.0

Entries

Link copied to clipboard

The document number check digit agrees with the one computed from the document number.

Link copied to clipboard

The date of birth check digit agrees with the one computed from the date of birth.

Link copied to clipboard

The date of expiry check digit agrees with the one computed from the date of expiry.

Link copied to clipboard

The optional data check digit (the TD3 personal number check digit) agrees with the one computed from the field.

Link copied to clipboard

The composite check digit agrees with the one computed from the composite input fields.

Link copied to clipboard

The date of birth parts form a real calendar date.

Link copied to clipboard

The date of expiry parts form a real calendar date.

Link copied to clipboard

The sex character is one of M, F, <, X.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

The MRZ field the check covers.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): MrzCheck

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.