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 GeneralSecurityException
GeneralSecurityException
public static String decode64(String secret, String cipherAlgorithm, SecretKey cipherKey, PBEParameterSpec cipherSpec) throws GeneralSecurityException, UnsupportedEncodingException
Copyright © 2017 JBoss by Red Hat. All rights reserved.