Package com.helger.phase4.crypto
Enum Class ECryptoAlgorithmCrypt
- All Implemented Interfaces:
com.helger.base.id.IHasID<String>,ICryptoAlgorithmCrypt,Serializable,Comparable<ECryptoAlgorithmCrypt>,Constable
public enum ECryptoAlgorithmCrypt
extends Enum<ECryptoAlgorithmCrypt>
implements ICryptoAlgorithmCrypt
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
FieldsModifier and TypeFieldDescriptionstatic final ECryptoAlgorithmCryptDeprecated, for removal: This API element is subject to removal in a future version.static final ECryptoAlgorithmCryptDefault encrypt algorithm -
Method Summary
Modifier and TypeMethodDescription@NonNull @Nonempty Stringstatic @Nullable ECryptoAlgorithmCryptgetFromIDOrDefault(@Nullable String sID, @Nullable ECryptoAlgorithmCrypt eDefault) static @Nullable ECryptoAlgorithmCryptgetFromIDOrNull(@Nullable String sID) static @NonNull ECryptoAlgorithmCryptgetFromIDOrThrow(@Nullable String sID) @NonNull @Nonempty StringgetID()This is the internal algorithm ID for resolution.@NonNull org.bouncycastle.asn1.ASN1ObjectIdentifiergetOID()static ECryptoAlgorithmCryptReturns the enum constant of this class with the specified name.static ECryptoAlgorithmCrypt[]values()Returns an array containing the constants of this enum class, 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
-
ENCRYPTION_ALGORITHM_DEFAULT
Default encrypt algorithm -
ENCRPYTION_ALGORITHM_DEFAULT
@Deprecated(since="4.4.0", forRemoval=true) public static final ECryptoAlgorithmCrypt ENCRPYTION_ALGORITHM_DEFAULTDeprecated, for removal: This API element is subject to removal in a future version.UseENCRYPTION_ALGORITHM_DEFAULTinstead - typo in name
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getID
Description copied from interface:ICryptoAlgorithmCryptThis is the internal algorithm ID for resolution.- Specified by:
getIDin interfaceICryptoAlgorithmCrypt- Specified by:
getIDin interfacecom.helger.base.id.IHasID<String>
-
getOID
public @NonNull org.bouncycastle.asn1.ASN1ObjectIdentifier getOID()- Specified by:
getOIDin interfaceICryptoAlgorithmCrypt- Returns:
- The OID of the algorithm to be used by the Security Provider.
-
getAlgorithmURI
- Specified by:
getAlgorithmURIin interfaceICryptoAlgorithmCrypt- Returns:
- The algorithm ID for XMLDsig base encryption
-
getFromIDOrNull
-
getFromIDOrThrow
-
getFromIDOrDefault
public static @Nullable ECryptoAlgorithmCrypt getFromIDOrDefault(@Nullable String sID, @Nullable ECryptoAlgorithmCrypt eDefault)
-
ENCRYPTION_ALGORITHM_DEFAULTinstead - typo in name