public enum CompoundAlgorithm extends java.lang.Enum<CompoundAlgorithm> implements Algorithm
CompoundAlgorithm provides some compound algorithms| Enum Constant and Description |
|---|
PBE_WITH_MD5_AND_AES
The enum constant for the 'PBEWithMD5AndAES' algorithm
|
PBE_WITH_MD5_AND_DES
The enum constant for the 'PBEWithMD5AndDES' algorithm
|
PBE_WITH_SHA1_AND_128BIT_AES_CBC_BC
The enum constant for the 'PBEWITHSHA1AND128BITAES-CBC-BC' algorithm
|
PBE_WITH_SHA1_AND_DES_EDE
The enum constant for the 'PBEWithSHA1AndDESede' algorithm
|
PBKDF2_WITH_HMAC_SHA1
The enum constant for the 'PBKDF2WithHmacSHA1' algorithm
|
SHA256_WITH_RSA
The enum constant for the 'SHA256withRSA' algorithm
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ITERATIONCOUNT
Constant for the default iteration count.
|
static java.lang.String |
PRIVATE_KEY
Constant for the default private key
|
static byte[] |
SALT
Constant array for the default contents of salt
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Gets the algorithm for encryption or decryption.
|
static CompoundAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompoundAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompoundAlgorithm PBE_WITH_MD5_AND_AES
public static final CompoundAlgorithm PBE_WITH_MD5_AND_DES
public static final CompoundAlgorithm PBE_WITH_SHA1_AND_128BIT_AES_CBC_BC
public static final CompoundAlgorithm PBE_WITH_SHA1_AND_DES_EDE
public static final CompoundAlgorithm PBKDF2_WITH_HMAC_SHA1
public static final CompoundAlgorithm SHA256_WITH_RSA
public static final int ITERATIONCOUNT
public static final java.lang.String PRIVATE_KEY
public static final byte[] SALT
public static CompoundAlgorithm[] values()
for (CompoundAlgorithm c : CompoundAlgorithm.values()) System.out.println(c);
public static CompoundAlgorithm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getAlgorithm()
AlgorithmgetAlgorithm in interface Algorithm