Enum AsymmetricCryptography.KeyFormat
- java.lang.Object
-
- java.lang.Enum<AsymmetricCryptography.KeyFormat>
-
- com.ulisesbocchio.jasyptspringboot.util.AsymmetricCryptography.KeyFormat
-
- All Implemented Interfaces:
Serializable,Comparable<AsymmetricCryptography.KeyFormat>
- Enclosing class:
- AsymmetricCryptography
public static enum AsymmetricCryptography.KeyFormat extends Enum<AsymmetricCryptography.KeyFormat>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsymmetricCryptography.KeyFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static AsymmetricCryptography.KeyFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DER
public static final AsymmetricCryptography.KeyFormat DER
-
PEM
public static final AsymmetricCryptography.KeyFormat PEM
-
-
Method Detail
-
values
public static AsymmetricCryptography.KeyFormat[] 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 (AsymmetricCryptography.KeyFormat c : AsymmetricCryptography.KeyFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsymmetricCryptography.KeyFormat 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
-
-