Package es.gob.jmulticard
Enum CryptoHelper.Padding
- java.lang.Object
-
- java.lang.Enum<CryptoHelper.Padding>
-
- es.gob.jmulticard.CryptoHelper.Padding
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CryptoHelper.Padding>
- Enclosing class:
- CryptoHelper
public static enum CryptoHelper.Padding extends java.lang.Enum<CryptoHelper.Padding>
Tipos de relleno para cifrados.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ISO7816_4PADDINGRelleno ISO7816-4.NOPADDINGSin relleno.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringalgName
-
Constructor Summary
Constructors Modifier Constructor Description privatePadding(java.lang.String alg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static CryptoHelper.PaddingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CryptoHelper.Padding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOPADDING
public static final CryptoHelper.Padding NOPADDING
Sin relleno.
-
ISO7816_4PADDING
public static final CryptoHelper.Padding ISO7816_4PADDING
Relleno ISO7816-4.
-
-
Method Detail
-
values
public static CryptoHelper.Padding[] 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 (CryptoHelper.Padding c : CryptoHelper.Padding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptoHelper.Padding valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<CryptoHelper.Padding>
-
-