Enum DSAKeyValidationParameters.Usage
- java.lang.Object
-
- java.lang.Enum<DSAKeyValidationParameters.Usage>
-
- org.xwiki.crypto.params.generator.asymmetric.DSAKeyValidationParameters.Usage
-
- All Implemented Interfaces:
Serializable,Comparable<DSAKeyValidationParameters.Usage>
- Enclosing class:
- DSAKeyValidationParameters
public static enum DSAKeyValidationParameters.Usage extends Enum<DSAKeyValidationParameters.Usage>
Definition of the usage of the key for FIPS186.3.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYAny usage.DIGITAL_SIGNATUREDigital signature usage.KEY_ESTABLISHMENTKey exchange usage.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DSAKeyValidationParameters.UsagevalueOf(String name)Returns the enum constant of this type with the specified name.static DSAKeyValidationParameters.Usage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIGITAL_SIGNATURE
public static final DSAKeyValidationParameters.Usage DIGITAL_SIGNATURE
Digital signature usage.
-
KEY_ESTABLISHMENT
public static final DSAKeyValidationParameters.Usage KEY_ESTABLISHMENT
Key exchange usage.
-
ANY
public static final DSAKeyValidationParameters.Usage ANY
Any usage.
-
-
Method Detail
-
values
public static DSAKeyValidationParameters.Usage[] 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 (DSAKeyValidationParameters.Usage c : DSAKeyValidationParameters.Usage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DSAKeyValidationParameters.Usage 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
-
-