public enum SecurityLevel extends Enum<SecurityLevel>
Enumeration of all possible security levels.
The security level classifies the algorithms strength in regards to the security.
Modifier and Type | Method and Description |
---|---|
static SecurityLevel |
getDefault()
Retrieves the default security level to be used.
|
SecurityLevel |
next()
Retrieves the next higher security level.
|
static SecurityLevel |
setDefault(SecurityLevel newLevel)
Sets the default security level to be used.
|
String |
toString() |
static SecurityLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecurityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityLevel LOW
public static final SecurityLevel MEDIUM
public static final SecurityLevel HIGH
public static final SecurityLevel QUANTUM
public static SecurityLevel[] values()
for (SecurityLevel c : SecurityLevel.values()) System.out.println(c);
public static SecurityLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SecurityLevel getDefault()
Retrieves the default security level to be used.
public static SecurityLevel setDefault(SecurityLevel newLevel)
Sets the default security level to be used.
newLevel
- the new default security level for all operations to be setpublic SecurityLevel next()
Retrieves the next higher security level.
public String toString()
toString
in class Enum<SecurityLevel>
Copyright © 2023. All rights reserved.