KeyFactory (EncryptionLibrary 1.0.2-3.8.0 API)
Date: 2015-08-04

org.gcube.common.utils.encryption

## Class KeyFactory

- java.lang.Object
- - 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

    Constructors
    Constructor and Description
    `KeyFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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 © 2015. All Rights Reserved.