Package org.apache.commons.crypto.jna
Enum OpenSslJnaCipher.AlgorithmMode
java.lang.Object
java.lang.Enum<OpenSslJnaCipher.AlgorithmMode>
org.apache.commons.crypto.jna.OpenSslJnaCipher.AlgorithmMode
- All Implemented Interfaces:
Serializable
,Comparable<OpenSslJnaCipher.AlgorithmMode>
- Enclosing class:
OpenSslJnaCipher
AlgorithmMode of JNA. Currently only support AES/CTR/NoPadding.
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static OpenSslJnaCipher.AlgorithmMode
Gets the AlgorithmMode instance.Returns the enum constant of this type with the specified name.static OpenSslJnaCipher.AlgorithmMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AES_CTR
-
AES_CBC
-
-
Constructor Details
-
AlgorithmMode
private AlgorithmMode()
-
-
Method Details
-
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
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
-
get
static OpenSslJnaCipher.AlgorithmMode get(String algorithm, String mode) throws NoSuchAlgorithmException Gets the AlgorithmMode instance.- Parameters:
algorithm
- the algorithm namemode
- the mode name- Returns:
- the AlgorithmMode instance
- Throws:
NoSuchAlgorithmException
- if the algorithm is not support
-