Package org.gcube.common.encryption
Class KeyFactory
- java.lang.Object
-
- org.gcube.common.encryption.KeyFactory
-
public class KeyFactory extends Object
A simplified keys generator for the most common algorithms- Author:
- Manuele Simi (CNR), Roberto Cirillo (ISTI - CNR), Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description KeyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecretKeynewAESKey()Generates an AES keystatic SecretKeynewDESKey()Generates a DESede keystatic SecretKeynewRijndaelKey()Generates a Rijndael keystatic SecretKeynewTripleDESKey()Generates a TripleDES key
-
-
-
Method Detail
-
newAESKey
public static SecretKey newAESKey() throws Exception
Generates an AES key- Throws:
Exception
-
newTripleDESKey
public static SecretKey newTripleDESKey() throws Exception
Generates a TripleDES key- Throws:
Exception
-
newRijndaelKey
public static SecretKey newRijndaelKey() throws Exception
Generates a Rijndael key- Throws:
Exception
-
-