Class EidAbstractHandler

java.lang.Object
be.gaudry.model.eid.file.EidAbstractHandler
All Implemented Interfaces:
IEidHandler
Direct Known Subclasses:
EidBrolHandlerV2, EidFedictHandler

public abstract class EidAbstractHandler extends Object implements IEidHandler
Author:
Steph GAUDRY
  • Field Details

    • encryptionAlgorithm

      protected static String encryptionAlgorithm
      todo: allow to set algorithm from GUI (EidSettingsPanel) or from property file ???
  • Constructor Details

    • EidAbstractHandler

      public EidAbstractHandler()
  • Method Details

    • getCipherKey

      public static String getCipherKey()
      Returns:
      the cipherKey
    • setCipherKey

      public static void setCipherKey(String cipherKey)
      Parameters:
      cipherKey - the cipherKey to set
    • getCipherAlgorithm

      public static String getCipherAlgorithm()
      Returns:
      the cipherKey
    • setCipherAlgorithm

      public static void setCipherAlgorithm(String algorithm) throws NoSuchAlgorithmException
      Throws:
      NoSuchAlgorithmException
    • generateSecretKey

      public static String generateSecretKey() throws NoSuchAlgorithmException
      Throws:
      NoSuchAlgorithmException
    • unhexify

      protected byte[] unhexify(String data)
      Wrapper method to ByteConverter.unhexify(String) Represents hexified bytes as documented above in their original value.
      Parameters:
      data - the hexified bytes in string format
    • getFrDate

      protected String getFrDate(Date date)
    • getFrDate

      protected Date getFrDate(String date)