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
Exception
public static String encode64(byte[] secret, String cipherAlgorithm, SecretKey cipherKey, PBEParameterSpec cipherSpec) throws Exception
Exception
public static byte[] decode(byte[] secret, String cipherAlgorithm, SecretKey cipherKey, PBEParameterSpec cipherSpec) throws Exception
Exception
public static String decode64(String secret, String cipherAlgorithm, SecretKey cipherKey, PBEParameterSpec cipherSpec) throws Exception
Exception
Copyright © 2019 JBoss by Red Hat. All rights reserved.