Package org.gcube.common.encryption
Class KeySerialization
java.lang.Object
org.gcube.common.encryption.KeySerialization
Manage keys serialization
- Author:
- Manuele Simi (CNR), Roberto Cirillo (ISTI - CNR), Luca Frosini (ISTI - CNR)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KeySerialization
public KeySerialization()
-
-
Method Details
-
store
Stores the key- Parameters:
key- the key to storefile- the file where to store the key- Throws:
Exception- if storing the key fails
-
loadDESede
Loads the DESede key- Parameters:
file- the name of the file where the key has been storedjceAlgorithmName- the name of the algorithm of the key- Returns:
- the loaded DESede secret key
- Throws:
Exception- if loading the key fails
-