org.jboss.identity.federation.bindings.util.cert
Class EncryptionKeyUtil

java.lang.Object
  extended by org.jboss.identity.federation.bindings.util.cert.EncryptionKeyUtil

public class EncryptionKeyUtil
extends java.lang.Object

Utility to generate symmetric key

Since:
Feb 4, 2009
Author:
Anil.Saldhana@redhat.com

Constructor Summary
EncryptionKeyUtil()
           
 
Method Summary
static javax.crypto.SecretKey getSecretKey(java.lang.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 javax.crypto.SecretKey getSecretKey(java.lang.String encAlgo,
                                                  int keySize)
                                           throws java.lang.Exception
Generate a secret key useful for encryption/decryption

Parameters:
encAlgo -
keySize - Length of the key (if 0, defaults to 128 bits)
Returns:
Throws:
java.lang.Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.