Enum Class SecurityLevel
- All Implemented Interfaces:
Serializable,Comparable<SecurityLevel>,Constable
Enumeration of all possible security levels.
The security level classifies the algorithms strength in regards to the security.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityLevelRetrieves the default security level to be used.next()Retrieves the next higher security level.static SecurityLevelsetDefault(SecurityLevel newLevel) Sets the default security level to be used.toString()static SecurityLevelReturns the enum constant of this class with the specified name.static SecurityLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW
-
MEDIUM
-
HIGH
-
QUANTUM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getDefault
Retrieves the default security level to be used.
- Returns:
- the default security level
-
setDefault
Sets the default security level to be used.
- Parameters:
newLevel- the new default security level for all operations to be set- Returns:
- the previous security level
-
next
Retrieves the next higher security level.
- Returns:
- the next higher security level
-
toString
- Overrides:
toStringin classEnum<SecurityLevel>
-