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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
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 TypeMethodDescriptionprotected org.dom4j.Node
getPhotoNode(org.dom4j.Document document, org.dom4j.Node identityNode)
protected void
load(VirtualBeID virtualBeID, org.dom4j.Document document)
Loads data from the given file to initialize theVirtualBeID
.protected void
loadAddress(VirtualBeID virtualBeID, org.dom4j.Document document)
protected void
loadCardInfo(VirtualBeID virtualBeID, org.dom4j.Node cardNode)
protected void
loadCertificates(VirtualBeID virtualBeID, org.dom4j.Document document)
protected void
loadIdentity(VirtualBeID virtualBeID, org.dom4j.Node identityNode, org.dom4j.Node photoNode, org.dom4j.Node cardNode)
protected EidSpecialStatus
loadSpecialStatus(org.dom4j.Node identityNode)
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
-
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:IEidHandler
Exports 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:
NumberFormatException
ParseException
-
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
-