KenyaIDCardModel
A class derived from IDCardModel containing details specific to the Kenya ID card
A class derived from IDCardModel containing details specific to the Kenya ID card
import com.sybrin.identity.countries.Kenya.IDCard.KenyaIDCardModel
extends
IDCardModel
The following validation and verification applies to this document:
As explained in Validation & Verification the following fields are verified across the front and back components of the document.
public int getCompositeCheckDigit ()
Returns the check digit used to verify the serial number, date of birth, date of expiry, optional data 1, and optional data 2 as found on the ID card.
public int getDateOfBirthCheckDigit ()
Returns the check digit used to verify the subject's date of birth as found on the ID card.
public Date getDateOfExpiry ()
Returns the ID card's date of expiry as found on the ID card.
public int getDateOfExpiryCheckDigit ()
Returns the check digit used to verify the ID card's date of expiry as found on the ID card.
public String getMrzLine1 ()
Returns the first MRZ line as found on the back of the ID card.
public String getMrzLine2 ()
Returns the second MRZ line as found on the back of the ID card.
public String getMrzLine3 ()
Returns the third MRZ line as found on the back of the ID card.
public String getOptionalData1 ()
Returns the first optional data as found on the back of the ID card.
public String getOptionalData2 ()
Returns the second optional data as found on the back of the ID card.
public String getSerialNumber ()
Returns the subject's serial number as found on the back of the ID card.
public int getSerialNumberCheckDigit ()
Returns the check digit used to verify the subject's serial number as found on the ID card.
Public methods
Data source
int
MRZ OCR
int
MRZ OCR
Date
MRZ OCR
int
MRZ OCR
String
MRZ OCR
String
MRZ OCR
String
MRZ OCR
String
MRZ OCR
String
MRZ OCR
String
MRZ OCR
int
MRZ OCR
Data source
<T extends DocumentModel>
N/A
Bitmap
Front of document
String
Local storage
Bitmap
Front of document
String
Local storage
Bitmap
Front of document
String
Local storage
void
saveImages(Context context)
Saves all images within the model
to the local device and populates
all path fields.
N/A
Data source
Bitmap
Back of document
String
Local Storage
Date
MRZ OCR
Bitmap
Back of document
String
Local Storage
String
MRZ OCR
String
MRZ OCR
String
MRZ OCR
Bitmap
Back of document
String
Local Storage
PDF417 Barcode
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 1 & 2 composite
Check digit using MRP Checksum calculation algorithm.
Serial Number
Check digit using MRP Checksum calculation algorithm.
Value
Source
Serial number
Front: OCR
Back: MRZ OCR
Returns
int
Returns
int
Returns
Date
The ID card's date of expiry. This value cannot be null
.
Returns
int
Returns
String
The first MRZ line. This value cannot be null
.
Returns
String
The second MRZ line. This value cannot be null
.
Returns
String
The third MRZ line. This value cannot be null
.
Returns
String
The first optional data.
Returns
String
The second optional data.
Returns
String
The subject's serial number. This value cannot be null
.
Returns
int