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)GeneralSecurityException
Copyright © 2017 JBoss by Red Hat. All rights reserved.