org.gcube.common.utils.encryption
Class KeyFactory

java.lang.Object
  extended by org.gcube.common.utils.encryption.KeyFactory

public class KeyFactory
extends Object

A simplified keys generator for the most common algorithms

Author:
Manuele Simi (CNR)

Constructor Summary
KeyFactory()
           
 
Method Summary
protected static SecretKey newAESKey()
          Generates an AES key
protected static SecretKey newDESKey()
          Generates a DESede key
protected static SecretKey newRijndaelKey()
          Generates a Rijndael key
protected static SecretKey newTripleDESKey()
          Generates a TripleDES key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFactory

public KeyFactory()
Method Detail

newAESKey

protected static SecretKey newAESKey()
                              throws Exception
Generates an AES key

Throws:
Exception

newTripleDESKey

protected static SecretKey newTripleDESKey()
                                    throws Exception
Generates a TripleDES key

Throws:
Exception

newRijndaelKey

protected static SecretKey newRijndaelKey()
                                   throws Exception
Generates a Rijndael key

Throws:
Exception

newDESKey

protected static SecretKey newDESKey()
                              throws Exception
Generates a DESede key

Throws:
Exception


Copyright © 2013. All Rights Reserved.