Package be.gaudry.model.eid.file
Class EidAbstractHandler
java.lang.Object
be.gaudry.model.eid.file.EidAbstractHandler
- All Implemented Interfaces:
IEidHandler
- Direct Known Subclasses:
EidBrolHandlerV2,EidFedictHandler
- Author:
- Steph GAUDRY
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringtodo: allow to set algorithm from GUI (EidSettingsPanel) or from property file ???Fields 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 TypeMethodDescriptionstatic Stringstatic Stringstatic Stringprotected Dateprotected Stringstatic voidsetCipherAlgorithm(String algorithm)static voidsetCipherKey(String cipherKey)protected byte[]Wrapper method toByteConverter.unhexify(String)Represents hexified bytes as documented above in their original value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface be.gaudry.model.eid.file.IEidHandler
load, save
-
Field Details
-
encryptionAlgorithm
todo: allow to set algorithm from GUI (EidSettingsPanel) or from property file ???
-
-
Constructor Details
-
EidAbstractHandler
public EidAbstractHandler()
-
-
Method Details
-
getCipherKey
- Returns:
- the cipherKey
-
setCipherKey
- Parameters:
cipherKey- the cipherKey to set
-
getCipherAlgorithm
- Returns:
- the cipherKey
-
setCipherAlgorithm
- Throws:
NoSuchAlgorithmException
-
generateSecretKey
- Throws:
NoSuchAlgorithmException
-
unhexify
Wrapper method toByteConverter.unhexify(String)Represents hexified bytes as documented above in their original value.- Parameters:
data- the hexified bytes in string format
-
getFrDate
-
getFrDate
-