public class PBEUtils extends Object
| Constructor and Description |
|---|
PBEUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] secret,
String cipherAlgorithm,
SecretKey cipherKey,
PBEParameterSpec cipherSpec) |
static String |
decode64(String secret,
String cipherAlgorithm,
SecretKey cipherKey,
PBEParameterSpec cipherSpec) |
static byte[] |
encode(byte[] secret,
String cipherAlgorithm,
SecretKey cipherKey,
PBEParameterSpec cipherSpec) |
static String |
encode64(byte[] secret,
String cipherAlgorithm,
SecretKey cipherKey,
PBEParameterSpec cipherSpec) |
static void |
main(String[] args) |
public static byte[] encode(byte[] secret,
String cipherAlgorithm,
SecretKey cipherKey,
PBEParameterSpec cipherSpec)
throws Exception
Exceptionpublic static String encode64(byte[] secret, String cipherAlgorithm, SecretKey cipherKey, PBEParameterSpec cipherSpec) throws Exception
Exceptionpublic static byte[] decode(byte[] secret,
String cipherAlgorithm,
SecretKey cipherKey,
PBEParameterSpec cipherSpec)
throws Exception
Exceptionpublic static String decode64(String secret, String cipherAlgorithm, SecretKey cipherKey, PBEParameterSpec cipherSpec) throws Exception
ExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.