Package pt.gov.cartaodecidadao
Class ICAO_Card
java.lang.Object
pt.gov.cartaodecidadao.PTEID_Object
pt.gov.cartaodecidadao.ICAO_Card
Class representing an ICAO-compliant card (MRTD - Machine Readable Travel Document).
Provides access to standardized Data Groups (DGs) such as identity information,
biometric data, and additional holder information, as well as authentication
mechanisms like BAC (Basic Access Control) and PACE (Password Authenticated Connection Establishment).
Reading Data groups requires prior authentication with either PACE or BAC.
Provides access to standardized Data Groups (DGs) such as identity information,
biometric data, and additional holder information, as well as authentication
mechanisms like BAC (Basic Access Control) and PACE (Password Authenticated Connection Establishment).
Reading Data groups requires prior authentication with either PACE or BAC.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voidinitBACAuthentication(String mrz_info) voidinitPaceAuthentication(String secret, long length, PTEID_CardPaceSecretType secretType) Init the Pace authentication processvoidloadMasterList(String filePath) Load a certificate MasterList containing CSCA certificates.Read MRZ Data Group (mandatory data group)Read personal details information (optional data group)Read Facial Biometric Information (mandatory data group)Read fingerprint biometric Information (optional data group)Read raw data from datagroup specified in parametervoidReset the card state, discarding any Secure Messaging session.
-
Method Details
-
delete
public void delete()- Overrides:
deletein classPTEID_Object
-
getAvailableDatagroups
- Throws:
PTEID_Exception
-
GetDocumentReport
-
initPaceAuthentication
public void initPaceAuthentication(String secret, long length, PTEID_CardPaceSecretType secretType) throws PTEID_Exception Init the Pace authentication process- Parameters:
secret- string that holds the secret to make the PACE processlength- size of the secret stringsecretType- type of the secret used to make the PACE process- Throws:
PTEID_Exception
-
initBACAuthentication
- Parameters:
mrz_info- must contain the full MRZInfo needed for BAC authentication:
i.e. document number + date of birth + expiry date, all 3 fields including their respective check digits- Throws:
PTEID_Exception
-
readDatagroupRaw
Read raw data from datagroup specified in parameter- Throws:
PTEID_Exception
-
readDataGroup1
Read MRZ Data Group (mandatory data group)- Throws:
PTEID_Exception
-
readDataGroup2
Read Facial Biometric Information (mandatory data group)- Throws:
PTEID_Exception
-
readDataGroup3
Read fingerprint biometric Information (optional data group)- Throws:
PTEID_Exception
-
readDataGroup11
Read personal details information (optional data group) -
loadMasterList
Load a certificate MasterList containing CSCA certificates. These are needed for certificate validation during
Passive Authentication This method needs to be called before readDataGroupRaw() or any other readDataGroup* method -
resetCardState
public void resetCardState()Reset the card state, discarding any Secure Messaging session. This is useful for a multi-application card like
PT eID v2 to be able to access other applications afterwards Other methods of ICAO_Card will fail after this
call!
-