Package com.helger.as2lib.crypto
Enum ECryptoAlgorithmCrypt
- All Implemented Interfaces:
ICryptoAlgorithm
,com.helger.commons.id.IHasID<String>
,Serializable
,Comparable<ECryptoAlgorithmCrypt>
,java.lang.constant.Constable
Enumeration with all message encryption algorithms supported.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ECryptoAlgorithmCrypt
getFromIDOrDefault
(String sID, ECryptoAlgorithmCrypt eDefault) static ECryptoAlgorithmCrypt
getFromIDOrNull
(String sID) static ECryptoAlgorithmCrypt
getFromIDOrThrow
(String sID) getID()
org.bouncycastle.asn1.ASN1ObjectIdentifier
getOID()
static ECryptoAlgorithmCrypt
Returns the enum constant of this type with the specified name.static ECryptoAlgorithmCrypt[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CRYPT_3DES
-
CRYPT_CAST5
-
CRYPT_IDEA
-
CRYPT_RC2
-
CRYPT_AES128_CBC
-
CRYPT_AES192_CBC
-
CRYPT_AES256_CBC
-
CRYPT_AES128_GCM
-
CRYPT_AES192_GCM
-
CRYPT_AES256_GCM
-
-
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
-
getID
- Specified by:
getID
in interfacecom.helger.commons.id.IHasID<String>
-
getOID
- Specified by:
getOID
in interfaceICryptoAlgorithm
- Returns:
- The ASN.1 object identifier of the crypto/sign algorithm. Never
null
.
-
getFromIDOrNull
-
getFromIDOrThrow
-
getFromIDOrDefault
@Nullable public static ECryptoAlgorithmCrypt getFromIDOrDefault(@Nullable String sID, @Nullable ECryptoAlgorithmCrypt eDefault)
-