Enum CryptoParametersJ8.TYPES_IMPL
- java.lang.Object
-
- java.lang.Enum<CryptoParametersJ8.TYPES_IMPL>
-
- org.apache.fulcrum.jce.crypto.extended.CryptoParametersJ8.TYPES_IMPL
-
- All Implemented Interfaces:
Serializable
,Comparable<CryptoParametersJ8.TYPES_IMPL>
- Enclosing interface:
- CryptoParametersJ8
public static enum CryptoParametersJ8.TYPES_IMPL extends Enum<CryptoParametersJ8.TYPES_IMPL>
Implementing classes are either using- PBEWith <digest>And<encryption> - the password-based encryption algorithm defined in PKCS #5: PBEWithHmacSHA256AndAES_256/CBC/PKCS5Padding in
ALGORITHM_J8_PBE
- AES/GCM/NoPadding in
ALGORITHM_J8_GCM
(Cipher Algorithm Names/Cipher Algorithm Modes/Cipher Algorithm Padding). Cipher is Galois/Counter Mode, as defined in NIST Special Publication SP 800-38D:
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALGORITHM_J8_GCM
ALGORITHM_J8_PBE
-
Method Summary
Modifier and Type Method Description String
getAlgorithm()
String
getClearCode()
clear code depending on algorithm AES size returnString
toString()
static CryptoParametersJ8.TYPES_IMPL
valueOf(String name)
Returns the enum constant of this type with the specified name.static CryptoParametersJ8.TYPES_IMPL[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALGORITHM_J8_PBE
public static final CryptoParametersJ8.TYPES_IMPL ALGORITHM_J8_PBE
-
ALGORITHM_J8_GCM
public static final CryptoParametersJ8.TYPES_IMPL ALGORITHM_J8_GCM
-
-
Method Detail
-
values
public static CryptoParametersJ8.TYPES_IMPL[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptoParametersJ8.TYPES_IMPL valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<CryptoParametersJ8.TYPES_IMPL>
-
getAlgorithm
public String getAlgorithm()
-
getClearCode
public String getClearCode()
clear code depending on algorithm AES size returnJ8AESAES_<size>;
.CryptoParametersJ8.CLEAR_CODE_DEFAULT
- Returns:
- clear code J8AES_<size>; with three digit size.
-
-