BotswanaPassportModel
A class derived from PassportModel containing details specific to the Botswana passport
import com.sybrin.identity.countries.Botswana.Passport.BotswanaPassportModel
extends
PassportModel
Summary
Public methods
Title
Data source
Inherited methods
void
saveImages(Context context)
Saves all images within the model
to the local device and populates
all path fields.
N/A
Validation
The following validation and verification applies to this document:
Check digit validation
Value
Validation type
Date of birth
Check digit using MRP Checksum calculation algorithm.
Date of expiry
Check digit using MRP Checksum calculation algorithm.
MRZ line 2 composite
Check digit using MRP Checksum calculation algorithm.
Passport number
Check digit using MRP Checksum calculation algorithm.
Public methods
getCompositeCheckDigit
public int getCompositeCheckDigit ()
Returns the check digit used to verify the passport number, date of birth, date of expiry, and optional data as found on the passport.
Returns
Title
int
Content
getDateOfBirthCheckDigit
public int getDateOfBirthCheckDigit ()
Returns the check digit used to verify the subject's date of birth as found on the passport.
Returns
Title
int
Content
getDateOfExpiryCheckDigit
public int getDateOfExpiryCheckDigit ()
Returns the check digit used to verify the passport's date of expiry as found on the passport.
Returns
Title
int
Content
getMrzLine1
public String getMrzLine1 ()
Returns the first MRZ line as found on the passport.
Returns
Title
String
The first MRZ line. This value cannot be null
.
getMrzLine2
public String getMrzLine2 ()
Returns the second MRZ line as found on the passport.
Returns
Title
String
The second MRZ line. This value cannot be null
.
getOptionalData
public String getOptionalData()
Returns the optional data as found on the passport.
Returns
Title
String
The optional data. This value cannot be null
.
getOptionalDataCheckDigit
public int getOptionalDataCheckDigit ()
Returns the check digit used to verify the optional data as found on the passport.
Returns
Title
int
Content
Last updated