Class KeySerialization


  • public class KeySerialization
    extends Object
    Manage keys serialization
    Author:
    Manuele Simi (CNR), Roberto Cirillo (ISTI - CNR), Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • KeySerialization

        public KeySerialization()
    • Method Detail

      • store

        public static void store​(Key key,
                                 File file)
                          throws Exception
        Stores the key
        Parameters:
        key - the key to store
        file - the file where to store the key
        Throws:
        Exception
      • loadDESede

        protected static SecretKey loadDESede​(File file,
                                              String jceAlgorithmName)
                                       throws Exception
        Loads the key
        Parameters:
        file - the name of the file where the key has been stored
        jceAlgorithmName - the name of the algorithm of the key
        Throws:
        Exception