Enum AESParameters.Padding
- All Implemented Interfaces:
Serializable
,Comparable<AESParameters.Padding>
,java.lang.constant.Constable
- Enclosing class:
- AESParameters
public static enum AESParameters.Padding extends Enum<AESParameters.Padding>
The padding scheme determines how an incomplete block (that does not reach the full block length) is filled with
additional bytes to make a complete block. This is necessary for all available modes except GCM. In this case you have
to use
NoPadding
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description NoPadding
Uses no padding (for GCM mode).PKCS5Padding
Uses PCKS5 padding.PKCS7Padding
Uses PCKS7 padding. -
Method Summary
Modifier and Type Method Description static AESParameters.Padding
valueOf(String name)
Returns the enum constant of this type with the specified name.static AESParameters.Padding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NoPadding
Uses no padding (for GCM mode). -
PKCS5Padding
Uses PCKS5 padding. -
PKCS7Padding
Uses PCKS7 padding.
-
-
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
-