Enum BlockEncryptionAlgorithm
- java.lang.Object
-
- java.lang.Enum<BlockEncryptionAlgorithm>
-
- io.jans.as.model.crypto.encryption.BlockEncryptionAlgorithm
-
- All Implemented Interfaces:
Serializable,Comparable<BlockEncryptionAlgorithm>
public enum BlockEncryptionAlgorithm extends Enum<BlockEncryptionAlgorithm>
- Author:
- Javier Rojas Blum Date: 12.03.2012
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A128CBC_PLUS_HS256A128GCMA256CBC_PLUS_HS512A256GCM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockEncryptionAlgorithmfromName(String name)StringgetAlgorithm()IntegergetCekLength()intgetCmkLength()StringgetFamily()intgetInitVectorLength()StringgetIntegrityValueAlgorithm()StringgetMessageDiggestAlgorithm()StringgetName()StringtoString()static BlockEncryptionAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static BlockEncryptionAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A128CBC_PLUS_HS256
public static final BlockEncryptionAlgorithm A128CBC_PLUS_HS256
-
A256CBC_PLUS_HS512
public static final BlockEncryptionAlgorithm A256CBC_PLUS_HS512
-
A128GCM
public static final BlockEncryptionAlgorithm A128GCM
-
A256GCM
public static final BlockEncryptionAlgorithm A256GCM
-
-
Method Detail
-
values
public static BlockEncryptionAlgorithm[] 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 (BlockEncryptionAlgorithm c : BlockEncryptionAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockEncryptionAlgorithm 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
-
getName
public String getName()
-
getFamily
public String getFamily()
-
getMessageDiggestAlgorithm
public String getMessageDiggestAlgorithm()
-
getIntegrityValueAlgorithm
public String getIntegrityValueAlgorithm()
-
getAlgorithm
public String getAlgorithm()
-
getCmkLength
public int getCmkLength()
-
getInitVectorLength
public int getInitVectorLength()
-
getCekLength
public Integer getCekLength()
-
fromName
public static BlockEncryptionAlgorithm fromName(String name)
-
toString
public String toString()
- Overrides:
toStringin classEnum<BlockEncryptionAlgorithm>
-
-