Package org.mozilla.zest.core.v1
Enum ZestScript.Type
- java.lang.Object
-
- java.lang.Enum<ZestScript.Type>
-
- org.mozilla.zest.core.v1.ZestScript.Type
-
- All Implemented Interfaces:
Serializable,Comparable<ZestScript.Type>
- Enclosing class:
- ZestScript
public static enum ZestScript.Type extends Enum<ZestScript.Type>
The type of the script: Active - the script will try to actively find vulnerabilities in the request/response passed into it, ie it will perform attacks Passive - the script will try to passively find vulnerabilities in the request/response passed into it, ie it will not make any additional requests StandAlone - the script acts on a target specified in the script (which can be overriden) the script will make requests Targeted - the script acts on a request passed into it - it may make additional requests and may changes to that request before submitting it. It may also not submit the request at all.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ActivePassiveStandAloneTargeted
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZestScript.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static ZestScript.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Active
public static final ZestScript.Type Active
-
Passive
public static final ZestScript.Type Passive
-
StandAlone
public static final ZestScript.Type StandAlone
-
Targeted
public static final ZestScript.Type Targeted
-
-
Method Detail
-
values
public static ZestScript.Type[] 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 (ZestScript.Type c : ZestScript.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZestScript.Type 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
-
-