public class EncryptionKeyUtil extends Object
| Constructor and Description |
|---|
EncryptionKeyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SecretKey |
getSecretKey(String encAlgo,
int keySize)
Generate a secret key useful for encryption/decryption
|
public static SecretKey getSecretKey(String encAlgo, int keySize) throws GeneralSecurityException
encAlgo - keySize - Length of the key (if 0, defaults to 128 bits)GeneralSecurityExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.