org.jboss.security.integration.password
Class EncryptionKeyUtil
java.lang.Object
org.jboss.security.integration.password.EncryptionKeyUtil
public class EncryptionKeyUtil
- extends Object
Utility to generate symmetric key
- Since:
- Feb 4, 2009
- Author:
- Anil.Saldhana@redhat.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptionKeyUtil
public EncryptionKeyUtil()
getSecretKey
public static SecretKey getSecretKey(String encAlgo,
int keySize)
throws Exception
- Generate a secret key useful for encryption/decryption
- Parameters:
encAlgo
- keySize
- Length of the key (if 0, defaults to 128 bits)
- Returns:
-
- Throws:
Exception
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.