org.gcube.common.utils.encryption
Class KeySerialization
java.lang.Object
org.gcube.common.utils.encryption.KeySerialization
public class KeySerialization
- extends Object
Manage keys serialization
- Author:
- Manuele Simi (CNR)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeySerialization
public KeySerialization()
store
protected static void store(Key key,
File file)
throws Exception
- Stores the key
- Parameters:
key - the key to storefile - 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 storedjceAlgorithmName - the name of the algorithm of the key
- Throws:
Exception
Copyright © 2013. All Rights Reserved.