Class EmrtdResult
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class EmrtdResult implements Parcelable
Represents an ICAO Doc 9303 eMRTD. Refer to ICAO Doc 9303 Part 10 and 11 in particular.
Provides Access to the SOD and DataGroups. Holds the security Check Results (if available).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumEmrtdResult.ParsingErrorEnum cases indicating which files were not parsed.
-
Field Summary
Fields Modifier and Type Field Description public final AccessControlTypechipAccessTypepublic final Array<byte>sodRawBinarypublic final Map<Integer, Array<byte>>dataGroupsRawBinarypublic final PassiveAuthenticationResultpassiveAuthenticationResultpublic final CheckResultchipAuthenticationResultpublic final ExceptionexceptionDuringChipAuthenticationpublic final CheckResultactiveAuthenticationResultpublic final ExceptionexceptionDuringActiveAuthenticationpublic final SodFilesodFilepublic final DG1Filedg1Filepublic final DG2Filedg2Filepublic final DG7Filedg7Filepublic final DG11Filedg11Filepublic final DG12Filedg12Filepublic final DG14Filedg14Filepublic final DG15Filedg15Filepublic final List<EmrtdResult.ParsingError>parsingErrorspublic final static Parcelable.Creator<EmrtdResult>CREATOR
-
Method Summary
Modifier and Type Method Description Array<byte>getDG1RawBinary()Convenience method to access the raw binary bytes of the DataGroup 1 file. Array<byte>getDG2RawBinary()Convenience method to access the raw binary bytes of the DataGroup 2 file. BitmapgetFacePhotoBitmap()Convenience method to access the face photo from DataGroup 2. Array<Bitmap>getSignatureBitmaps()Convenience method to access the signature photo(s) from DataGroup 7. intdescribeContents()voidwriteToParcel(Parcel parcel, int i)-
-
Method Detail
-
getDG1RawBinary
Array<byte> getDG1RawBinary()
Convenience method to access the raw binary bytes of the DataGroup 1 file.
- Returns:
byte array with the raw binary bytes of the DataGroup 1 file.
-
getDG2RawBinary
Array<byte> getDG2RawBinary()
Convenience method to access the raw binary bytes of the DataGroup 2 file.
- Returns:
byte array with the raw binary bytes of the DataGroup 2 file.
-
getFacePhotoBitmap
Bitmap getFacePhotoBitmap()
Convenience method to access the face photo from DataGroup 2.
- Returns:
android Bitmap of the decoded face photo.
-
getSignatureBitmaps
Array<Bitmap> getSignatureBitmaps()
Convenience method to access the signature photo(s) from DataGroup 7.
- Returns:
android Bitmap(s) of the decoded signature photo(s).May be `null` if DataGroup 7 is not present or if DataGroup 7 contains no images.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel parcel, int i)
-
-
-
-