Package pt.gov.cartaodecidadao
Class PTEID_EIDCard
java.lang.Object
pt.gov.cartaodecidadao.PTEID_Object
pt.gov.cartaodecidadao.PTEID_Card
pt.gov.cartaodecidadao.PTEID_SmartCard
pt.gov.cartaodecidadao.PTEID_EIDCard
- All Implemented Interfaces:
PTEID_SigningDevice
This class represents a Portugal EID card.
To get such an object you have to ask it from the ReaderContext.
To get such an object you have to ask it from the ReaderContext.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanActivate(String pinCode, PTEID_ByteArray BCDDate, boolean blockActivationPIN) Activate the Pteid card by writing the contents of the supplied PTEID_ByteArray in the card TRACE filebooleanbooleanbooleanclearPersonalNotes(PTEID_Pin pin, String csPinCode) voiddelete()voiddoSODCheck(boolean check) Enable/disable the verification of ID and address data against the SOD filegetAddr()Get the Address documentgetID()Get the id documentGet the CVC CA public key that this card uses to verify the CVC keygetSod()Get the SOD documentGet the info documentgetXmlCCDoc(PTEID_XmlUserRequestedInfo userRequestedInfo) booleanisActive()booleanbooleanwritePersonalNotes(PTEID_ByteArray out, PTEID_Pin pin) booleanwritePersonalNotes(PTEID_ByteArray out, PTEID_Pin pin, String csPinCode) Methods inherited from class pt.gov.cartaodecidadao.PTEID_SmartCard
certificateCount, getPins, pinCount, readFile, readFile, readFile, selectApplication, sendAPDU, sendAPDU, sendAPDU, writeFile, writeFile, writeFile, writeFileMethods inherited from class pt.gov.cartaodecidadao.PTEID_Card
getAuthentication, getCA, getCert, getCertificates, getDeviceType, getRoot, getSignature, getType, initPaceAuthentication, PTEID_SigningDevice_GetInterfaceCPtr, readFile, readFile, readFile, Sign, Sign, Sign, Sign, SignASiC, SignASiC, SignPDF, SignPDF, SignSHA256, SignSHA256, SignXades, SignXades, SignXadesA, SignXadesAIndividual, SignXadesIndividual, SignXadesT, SignXadesTIndividual, writeFile
-
Method Details
-
delete
public void delete()- Overrides:
deletein classPTEID_SmartCard
-
getXmlCCDoc
-
getID
Get the id document- Throws:
PTEID_Exception
-
getAddr
Get the Address document- Throws:
PTEID_Exception
-
getSod
Get the SOD document -
getVersionInfo
Get the info document- Throws:
PTEID_Exception
-
writePersonalNotes
public boolean writePersonalNotes(PTEID_ByteArray out, PTEID_Pin pin, String csPinCode) throws PTEID_Exception - Throws:
PTEID_Exception
-
writePersonalNotes
- Throws:
PTEID_Exception
-
writePersonalNotes
- Throws:
PTEID_Exception
-
clearPersonalNotes
- Throws:
PTEID_Exception
-
clearPersonalNotes
- Throws:
PTEID_Exception
-
clearPersonalNotes
- Throws:
PTEID_Exception
-
readPersonalNotes
- Throws:
PTEID_Exception
-
getRootCAPubKey
Get the CVC CA public key that this card uses to verify the CVC key- Throws:
PTEID_Exception
-
isActive
- Throws:
PTEID_Exception
-
doSODCheck
Enable/disable the verification of ID and address data against the SOD file- Throws:
PTEID_Exception
-
Activate
public boolean Activate(String pinCode, PTEID_ByteArray BCDDate, boolean blockActivationPIN) throws PTEID_Exception Activate the Pteid card by writing the contents of the supplied PTEID_ByteArray in the card TRACE file- Parameters:
pinCode- Activation PIN valueBCDDate- content to be written in the activation flag file (limited to 8 bytes) - recommended way to use
is to supply the current date in BCD format (Binary coded decimal)blockActivationPIN- Boolean flag used in test mode to avoid blocking the Activation PIN after first use- Throws:
PTEID_Exception
-