Package com.helger.phase4.crypto
Enum ECryptoAlgorithmCrypt
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<ECryptoAlgorithmCrypt>,java.lang.constant.Constable
public enum ECryptoAlgorithmCrypt
extends Enum<ECryptoAlgorithmCrypt>
implements com.helger.commons.id.IHasID<String>
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 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ECryptoAlgorithmCryptgetFromIDOrDefault(String sID, ECryptoAlgorithmCrypt eDefault) static ECryptoAlgorithmCryptgetFromIDOrNull(String sID) static ECryptoAlgorithmCryptgetFromIDOrThrow(String sID) getID()org.bouncycastle.asn1.ASN1ObjectIdentifiergetOID()static ECryptoAlgorithmCryptReturns 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
-
AES_128_CBC
-
AES_128_GCM
-
AES_192_CBC
-
AES_192_GCM
-
AES_256_CBC
-
AES_256_GCM
-
-
Field Details
-
ENCRPYTION_ALGORITHM_DEFAULT
Default encrypt algorithm
-
-
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:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getOID
-
getAlgorithmURI
- Returns:
- The algorithm ID for XMLDsig base encryption
-
getFromIDOrNull
-
getFromIDOrThrow
-
getFromIDOrDefault
@Nullable public static ECryptoAlgorithmCrypt getFromIDOrDefault(@Nullable String sID, @Nullable ECryptoAlgorithmCrypt eDefault)
-