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
Modifier and TypeFieldDescriptionprotected static String
todo: 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
protected Date
protected String
static void
setCipherAlgorithm(String algorithm)
static void
setCipherKey(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, wait
Methods 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
-