Package es.gob.afirma.encryption
Enum AlgorithmCipherEnum
- java.lang.Object
-
- java.lang.Enum<AlgorithmCipherEnum>
-
- es.gob.afirma.encryption.AlgorithmCipherEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AlgorithmCipherEnum>
public enum AlgorithmCipherEnum extends java.lang.Enum<AlgorithmCipherEnum>
Class that represents the differents types of ciphers algorithm.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 26/02/2016.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithm()Gets the value of the attributealgorithm.java.lang.StringgetPaddingAlgorithm()Gets the value of the attributepaddingAlgorithm.static AlgorithmCipherEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AlgorithmCipherEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AES
public static final AlgorithmCipherEnum AES
Attribute that represents the identifiers of the different ciphers.
-
DES
public static final AlgorithmCipherEnum DES
-
TRIPLE_DES
public static final AlgorithmCipherEnum TRIPLE_DES
-
BLOWSFISH
public static final AlgorithmCipherEnum BLOWSFISH
-
CAMELLIA
public static final AlgorithmCipherEnum CAMELLIA
-
RSA_OAEP
public static final AlgorithmCipherEnum RSA_OAEP
-
RSA_PKCS1
public static final AlgorithmCipherEnum RSA_PKCS1
-
-
Method Detail
-
values
public static AlgorithmCipherEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AlgorithmCipherEnum c : AlgorithmCipherEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlgorithmCipherEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAlgorithm
public java.lang.String getAlgorithm()
Gets the value of the attributealgorithm.- Returns:
- the value of the attribute
algorithm.
-
getPaddingAlgorithm
public java.lang.String getPaddingAlgorithm()
Gets the value of the attributepaddingAlgorithm.- Returns:
- the value of the attribute
paddingAlgorithm.
-
-