Package be.gaudry.model.eid
Class MRZHelper
java.lang.Object
be.gaudry.model.eid.MRZHelper
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 Summary
Modifier and TypeFieldDescriptionstatic int
static String
static int
static int
static SimpleDateFormat
-
Method Summary
-
Field Details
-
EID_MAX_CHARS_PER_LINE
public static final int EID_MAX_CHARS_PER_LINE- See Also:
- Constant Field Values
-
BEID_MAX_CHARS_PER_LINE
public static final int BEID_MAX_CHARS_PER_LINE- See Also:
- Constant Field Values
-
EID_MRZ_LINES
public static final int EID_MRZ_LINES- See Also:
- Constant Field Values
-
EID_DATE_PATTERN
- See Also:
- Constant Field Values
-
simpleDateFormat
-
-
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 iddocCountry
- 3 letters code or country name. ex=: BELdocNumber
-birthdate
-gender
- Male: 'M', Female: 'F' or Undefined 'X'expirationDate
-nationality
- 3 letter code or country name. ex: BELsurname
- Special characters will be transliteratedfirstnames
- Special characters will be transliterated- Returns:
-