Class MRZHelper

java.lang.Object
be.gaudry.model.eid.MRZHelper

public class MRZHelper extends Object
MRZ, or Machine-Readable Zone is a codified element of identity documents. Its purpose is to facilitate easier automated scanning of basic personal details of the document holder, such as their full name, document number, nationality, date of birth, and the document expiration date. Today the MRZ can be found on the photo page of any international passport, as well as on many types of ID cards, residence permits, visas, and more. A document which contains MRZ is referred to as a Machine Readable Travel Document, or MRTD for short.
Author:
Steph GAUDRY
  • Field Details

  • Method Details

    • generateTD1

      public static String generateTD1(String docType, String docCountry, String docNumber, Date birthdate, Character gender, Date expirationDate, String nationality, String natNbr, String surname, String firstnames)
      Parameters:
      docType - 'P<' for passport, "ID" for be id
      docCountry - 3 letters code or country name. ex=: BEL
      docNumber -
      birthdate -
      gender - Male: 'M', Female: 'F' or Undefined 'X'
      expirationDate -
      nationality - 3 letter code or country name. ex: BEL
      surname - Special characters will be transliterated
      firstnames - Special characters will be transliterated
      Returns: