org.keycloak.saml.processing.core.util

## Class EncryptionKeyUtil

- java.lang.Object
- - org.keycloak.saml.processing.core.util.EncryptionKeyUtil

-     public class EncryptionKeyUtil
      extends Object

  Utility to generate symmetric key
  Since:
    Feb 4, 2009
  Author:
    Anil.Saldhana@redhat.com

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EncryptionKeyUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SecretKey` | `getSecretKey(String encAlgo, int keySize)` Generate a secret key useful for encryption/decryption

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EncryptionKeyUtil

          public EncryptionKeyUtil()

  - ### Method Detail

    - #### getSecretKey

          public static SecretKey getSecretKey(String encAlgo,
                                               int keySize)
                                        throws GeneralSecurityException

      Generate a secret key useful for encryption/decryption
      Parameters:
        `encAlgo` -
        `keySize` - Length of the key (if 0, defaults to 128 bits)
      Returns:
      Throws:
        `GeneralSecurityException`

Copyright © 2016 JBoss by Red Hat. All rights reserved.