Package org.zaproxy.zap.extension.ascan
Interface CustomScanPanel
-
public interface CustomScanPanel
A panel that add-ons can add to the custom active scan dialog
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object[]
getContextSpecificObjects()
Any context specific objects to add to the scan - return null for none.java.lang.String
getLabel()
The i18n label to use for the panel titleAbstractParamPanel
getPanel(boolean init)
The panel to add to the custom active scan dialogTarget
getTarget()
The target to use if (and only if) the user has not specified a target Return null if a target just for the information specified in this panel does not make sensejava.lang.String
validateFields()
A translated error message to display if the information the user has provided in incorrect or incomplete
-
-
-
Method Detail
-
getLabel
java.lang.String getLabel()
The i18n label to use for the panel title- Returns:
- the title of the panel
-
getPanel
AbstractParamPanel getPanel(boolean init)
The panel to add to the custom active scan dialog- Parameters:
init
-true
if the panel should be (re)initialised,false
otherwise- Returns:
- the panel that will be shown
-
getTarget
Target getTarget()
The target to use if (and only if) the user has not specified a target Return null if a target just for the information specified in this panel does not make sense- Returns:
- the target built from the panel
-
validateFields
java.lang.String validateFields()
A translated error message to display if the information the user has provided in incorrect or incomplete- Returns:
- a message indicating the error,
null
if none.
-
getContextSpecificObjects
java.lang.Object[] getContextSpecificObjects()
Any context specific objects to add to the scan - return null for none.- Returns:
- an array containing custom scan objects
-
-