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
public class PTEID_EIDCard extends PTEID_SmartCard
This class represents a Portugal EID card.
To get such an object you have to ask it from the ReaderContext.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanActivate(java.lang.String pinCode, PTEID_ByteArray BCDDate, boolean blockActivationPIN)Activate the Pteid card by writing the contents of the supplied PTEID_ByteArray in the card TRACE filebooleanclearPersonalNotes()booleanclearPersonalNotes(PTEID_Pin pin)booleanclearPersonalNotes(PTEID_Pin pin, java.lang.String csPinCode)voiddelete()voiddoSODCheck(boolean check)Enable/disable the verification of ID and address data against the SOD filePTEID_AddressgetAddr()Get the Address documentPTEID_EIdgetID()Get the id documentPTEID_PublicKeygetRootCAPubKey()Get the CVC CA public key that this card uses to verify the CVC keyPTEID_SodgetSod()Get the SOD documentPTEID_CardVersionInfogetVersionInfo()Get the info documentPTEID_CCXML_DocgetXmlCCDoc(PTEID_XmlUserRequestedInfo userRequestedInfo)booleanisActive()java.lang.StringreadPersonalNotes()booleanwritePersonalNotes(PTEID_ByteArray out)booleanwritePersonalNotes(PTEID_ByteArray out, PTEID_Pin pin)booleanwritePersonalNotes(PTEID_ByteArray out, PTEID_Pin pin, java.lang.String csPinCode)-
Methods inherited from class pt.gov.cartaodecidadao.PTEID_SmartCard
certificateCount, getPins, pinCount, readFile, readFile, readFile, selectApplication, sendAPDU, sendAPDU, sendAPDU, writeFile, writeFile, writeFile, writeFile
-
Methods 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 Detail
-
delete
public void delete()
- Overrides:
deletein classPTEID_SmartCard
-
getXmlCCDoc
public PTEID_CCXML_Doc getXmlCCDoc(PTEID_XmlUserRequestedInfo userRequestedInfo)
-
getID
public PTEID_EId getID() throws PTEID_Exception
Get the id document- Throws:
PTEID_Exception
-
getAddr
public PTEID_Address getAddr() throws PTEID_Exception
Get the Address document- Throws:
PTEID_Exception
-
getSod
public PTEID_Sod getSod()
Get the SOD document
-
getVersionInfo
public PTEID_CardVersionInfo getVersionInfo() throws PTEID_Exception
Get the info document- Throws:
PTEID_Exception
-
writePersonalNotes
public boolean writePersonalNotes(PTEID_ByteArray out, PTEID_Pin pin, java.lang.String csPinCode) throws PTEID_Exception
- Throws:
PTEID_Exception
-
writePersonalNotes
public boolean writePersonalNotes(PTEID_ByteArray out, PTEID_Pin pin) throws PTEID_Exception
- Throws:
PTEID_Exception
-
writePersonalNotes
public boolean writePersonalNotes(PTEID_ByteArray out) throws PTEID_Exception
- Throws:
PTEID_Exception
-
clearPersonalNotes
public boolean clearPersonalNotes(PTEID_Pin pin, java.lang.String csPinCode) throws PTEID_Exception
- Throws:
PTEID_Exception
-
clearPersonalNotes
public boolean clearPersonalNotes(PTEID_Pin pin) throws PTEID_Exception
- Throws:
PTEID_Exception
-
clearPersonalNotes
public boolean clearPersonalNotes() throws PTEID_Exception- Throws:
PTEID_Exception
-
readPersonalNotes
public java.lang.String readPersonalNotes() throws PTEID_Exception- Throws:
PTEID_Exception
-
getRootCAPubKey
public PTEID_PublicKey getRootCAPubKey() throws PTEID_Exception
Get the CVC CA public key that this card uses to verify the CVC key- Throws:
PTEID_Exception
-
isActive
public boolean isActive() throws PTEID_Exception- Throws:
PTEID_Exception
-
doSODCheck
public void doSODCheck(boolean check) throws PTEID_ExceptionEnable/disable the verification of ID and address data against the SOD file- Throws:
PTEID_Exception
-
Activate
public boolean Activate(java.lang.String pinCode, PTEID_ByteArray BCDDate, boolean blockActivationPIN) throws PTEID_ExceptionActivate the Pteid card by writing the contents of the supplied PTEID_ByteArray in the card TRACE file- Parameters:
BCDDate- 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)pinCode- Activation PIN valueblockActivationPIN- Boolean flag used in test mode to avoid blocking the Activation PIN after first use- Throws:
PTEID_Exception
-
-