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
encryptionAlgorithm
Fields inherited from interface be.gaudry.model.eid.file.IEidHandler
CERT_STATUS_NOT_VALIDATED, DEFAULT_ALGORITHM, DEFAULT_CIPHER_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLoads data from the given file to initialize theVirtualBeID
.void
save(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:IEidHandler
Loads data from the given file to initialize theVirtualBeID
.- Parameters:
file
- is the file to read- Returns:
- a
VirtualBeID
object 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
-