Package org.iqtig.packer.shared.crypto
Enum CryptoConstant
- java.lang.Object
-
- java.lang.Enum<CryptoConstant>
-
- org.iqtig.packer.shared.crypto.CryptoConstant
-
- All Implemented Interfaces:
Serializable
,Comparable<CryptoConstant>
public enum CryptoConstant extends Enum<CryptoConstant>
Aufzählungsdatentyp für Konstanten rund um Verschlüsselung. BSI-Empfehlungen: Standard Algorithm Names- Author:
- matthias.drummer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES
AES_PADDING_GCM
PBKDF2_HMAC_SHA256
PKCS12
RSA
SHA256_WITH_RSA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
static CryptoConstant
valueOf(String name)
Returns the enum constant of this type with the specified name.static CryptoConstant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PKCS12
public static final CryptoConstant PKCS12
-
RSA
public static final CryptoConstant RSA
-
SHA256_WITH_RSA
public static final CryptoConstant SHA256_WITH_RSA
-
AES
public static final CryptoConstant AES
-
PBKDF2_HMAC_SHA256
public static final CryptoConstant PBKDF2_HMAC_SHA256
-
AES_PADDING_GCM
public static final CryptoConstant AES_PADDING_GCM
-
-
Method Detail
-
values
public static CryptoConstant[] 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 (CryptoConstant c : CryptoConstant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptoConstant 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
-
getValue
public String getValue()
-
-