public static enum Alert.Source extends Enum<Alert.Source>
Enum Constant and Description |
---|
ACTIVE
An alert raised by an active scanner.
|
MANUAL
An alert raised manually (by the user).
|
PASSIVE
An alert raised by a passive scanner.
|
TOOL
An alert raised by other tools/functionalities in ZAP (for example, fuzzer, HTTPS Info
add-on, custom scripts...).
|
UNKNOWN
An alert raised by unknown tool/functionality, mostly for old alerts which source is not
(well) known.
|
Modifier and Type | Method and Description |
---|---|
String |
getI18nKey()
Gets the key for the internationalised name.
|
int |
getId()
Gets the identifier of this
Source . |
static Alert.Source |
getSource(int id)
Gets the
Source with the given identifier. |
static Alert.Source |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Alert.Source[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Alert.Source UNKNOWN
public static final Alert.Source ACTIVE
public static final Alert.Source MANUAL
public static final Alert.Source PASSIVE
public static final Alert.Source TOOL
public static Alert.Source[] values()
for (Alert.Source c : Alert.Source.values()) System.out.println(c);
public static Alert.Source 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 int getId()
Source
.
Should be used for persistence.
getSource(int)
public String getI18nKey()
public static Alert.Source getSource(int id)
Source
with the given identifier.