Package be.gaudry.model.eid.file
Class EidFedictHandler
java.lang.Object
be.gaudry.model.eid.file.EidAbstractHandler
be.gaudry.model.eid.file.EidFedictHandler
- All Implemented Interfaces:
IEidHandler
- Author:
- Steph GAUDRY
-
Field Summary
Fields inherited from class be.gaudry.model.eid.file.EidAbstractHandler
encryptionAlgorithmFields inherited from interface be.gaudry.model.eid.file.IEidHandler
CERT_STATUS_NOT_VALIDATED, DEFAULT_ALGORITHM, DEFAULT_CIPHER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads data from the given file to initialize theVirtualBeID.voidsave(File file, VirtualBeID virtualBeID)Exports the virtual BEID to the given XML-file.Methods inherited from class be.gaudry.model.eid.file.EidAbstractHandler
generateSecretKey, getCipherAlgorithm, getCipherKey, getFrDate, getFrDate, setCipherAlgorithm, setCipherKey, unhexify
-
Constructor Details
-
EidFedictHandler
public EidFedictHandler()
-
-
Method Details
-
save
Exports the virtual BEID to the given XML-file. \nThis exports only the visual data to the BEID GUI. So for example the hash of the picture of the holder is not exported.- Parameters:
file- Where to save the informations- Throws:
IOException
-
load
Description copied from interface:IEidHandlerLoads data from the given file to initialize theVirtualBeID.- Parameters:
file- is the file to read- Returns:
- a
VirtualBeIDobject containing all the BeID card data - Throws:
ParseException- when the dates couldn't be parsed correctlyorg.dom4j.DocumentException- when the document isn't well-formed
-