Package be.gaudry.model.eid.file
Class EidBrolHandlerV2
java.lang.Object
be.gaudry.model.eid.file.EidAbstractHandler
be.gaudry.model.eid.file.EidBrolHandlerV2
- All Implemented Interfaces:
IEidHandler
- Direct Known Subclasses:
EidBrolHandlerV1
- Author:
- Steph GAUDRY
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields 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 TypeMethodDescriptionprotected org.dom4j.NodegetPhotoNode(org.dom4j.Document document, org.dom4j.Node identityNode)protected voidload(VirtualBeID virtualBeID, org.dom4j.Document document)Loads data from the given file to initialize theVirtualBeID.protected voidloadAddress(VirtualBeID virtualBeID, org.dom4j.Document document)protected voidloadCardInfo(VirtualBeID virtualBeID, org.dom4j.Node cardNode)protected voidloadCertificates(VirtualBeID virtualBeID, org.dom4j.Document document)protected voidloadIdentity(VirtualBeID virtualBeID, org.dom4j.Node identityNode, org.dom4j.Node photoNode, org.dom4j.Node cardNode)protected EidSpecialStatusloadSpecialStatus(org.dom4j.Node identityNode)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
-
Field Details
-
XML_ROOT_NODE
- See Also:
- Constant Field Values
-
XML_EID_VERSION_ATTR
- See Also:
- Constant Field Values
-
XML_IDENTITY_NODE
- See Also:
- Constant Field Values
-
XML_IDENT_NATNBR_ATTR
- See Also:
- Constant Field Values
-
XML_IDENT_DATEBIRTH_ATTR
- See Also:
- Constant Field Values
-
XML_IDENT_GENDER_ATTR
- See Also:
- Constant Field Values
-
XML_IDENT_SPECSTAT_ATTR
- See Also:
- Constant Field Values
-
XML_IDENT_NOBCOND_ATTR
- See Also:
- Constant Field Values
-
XML_IDENT_NAME_NODE
- See Also:
- Constant Field Values
-
XML_IDENT_FNAME_NODE
- See Also:
- Constant Field Values
-
XML_IDENT_MNAME_NODE
- See Also:
- Constant Field Values
-
XML_IDENT_PSEUDO_NODE
- See Also:
- Constant Field Values
-
XML_IDENT_NAT_NODE
- See Also:
- Constant Field Values
-
XML_IDENT_BPLACE_NODE
- See Also:
- Constant Field Values
-
XML_PHOTO_NODE
- See Also:
- Constant Field Values
-
XML_PHOTO_HASH_ATTR
- See Also:
- Constant Field Values
-
XML_CARD_NODE
- See Also:
- Constant Field Values
-
XMLCARD_CHIP_ATTR
- See Also:
- Constant Field Values
-
XMLCARD_CODE_ATTR
- See Also:
- Constant Field Values
-
XMLCARD_TOKEN_ATTR
- See Also:
- Constant Field Values
-
XML_CARD_TYPE_NODE
- See Also:
- Constant Field Values
-
XML_CARD_VERSION_NODE
- See Also:
- Constant Field Values
-
CURRENT_FILE_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
EidBrolHandlerV2
public EidBrolHandlerV2()
-
-
Method Details
-
save
Description copied from interface:IEidHandlerExports the virtual BEID to the given XML-file.- Parameters:
file- Where to save the informations- Throws:
IOException
-
loadCardInfo
-
loadCertificates
-
loadAddress
-
loadIdentity
protected void loadIdentity(VirtualBeID virtualBeID, org.dom4j.Node identityNode, org.dom4j.Node photoNode, org.dom4j.Node cardNode) -
loadSpecialStatus
-
getPhotoNode
protected org.dom4j.Node getPhotoNode(org.dom4j.Document document, org.dom4j.Node identityNode) -
load
protected void load(VirtualBeID virtualBeID, org.dom4j.Document document) throws NumberFormatException, ParseException- Throws:
NumberFormatExceptionParseException
-
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
-