Enum 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.
    • 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 name
        NullPointerException - if the argument is null