-
Method Summary
Return the date of birth (YYMMDD format)
Return the date of expiry (YYMMDD format)
void
Return the document code (e.g.
Return the document number
boolean
Return true if the document is a passport (code starts with 'P')
Return the issuing state (3-letter ISO code)
Return the nationality (3-letter ISO code)
Return the first line of optional data (present in some MRTD types)
Return the second line of optional data (present in some MRTD types)
Return the primary identifier (surname)
Return the secondary identifier (given names)
int
Return the check digit for the document number.
char
Return the sex (M, F or <)
-
Method Details
-
-
documentCode
Return the document code (e.g. "P" for passport, "I" for identity card)
-
issuingState
Return the issuing state (3-letter ISO code)
-
documentNumber
public String documentNumber()
Return the document number
-
serialNumberCheckDigit
public int serialNumberCheckDigit()
Return the check digit for the document number. If -1, optional data completes the number.
-
optionalDataLine1
public String optionalDataLine1()
Return the first line of optional data (present in some MRTD types)
-
dateOfBirth
Return the date of birth (YYMMDD format)
-
sex
public char sex()
Return the sex (M, F or <)
-
dateOfExpiry
Return the date of expiry (YYMMDD format)
-
nationality
Return the nationality (3-letter ISO code)
-
optionalDataLine2
public String optionalDataLine2()
Return the second line of optional data (present in some MRTD types)
-
primaryIdentifier
public String primaryIdentifier()
Return the primary identifier (surname)
-
secondaryIdentifier
public String secondaryIdentifier()
Return the secondary identifier (given names)
-
isPassport
public boolean isPassport()
Return true if the document is a passport (code starts with 'P')
-