public abstract class AbstractSecurityScan extends AbstractWsdlModelItem<SecurityScanConfig> implements ResponseAssertion, SecurityScan
Assertable.AssertionStatus
Modifier and Type | Field and Description |
---|---|
protected AssertionsSupport |
assertionsSupport |
SECURITY_CHECK_RESPONSE_RESULT, SECURITY_SCAN_REQUEST_RESULT, STATUS_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
AbstractSecurityScan(TestStep testStep,
SecurityScanConfig config,
ModelItem parent,
String icon) |
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfig
getChildren, getDescription, getIcon, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, removePropertyChangeListener
protected AssertionsSupport assertionsSupport
public AbstractSecurityScan(TestStep testStep, SecurityScanConfig config, ModelItem parent, String icon)
public void copyConfig(SecurityScanConfig config)
copyConfig
in interface SecurityScan
public void updateSecurityConfig(SecurityScanConfig config)
updateSecurityConfig
in interface SecurityScan
protected void initAssertions()
public SecurityScanResult run(TestStep testStep, SecurityTestRunContext context, SecurityTestRunner securityTestRunner)
run
in interface SecurityScan
protected void clear()
protected abstract void execute(SecurityTestRunner runner, TestStep testStep, SecurityTestRunContext context)
protected abstract boolean hasNext(TestStep testStep2, SecurityTestRunContext context)
testStep2
- context
- public boolean isConfigurable()
isConfigurable
in interface SecurityScan
public JComponent getComponent()
getComponent
in interface SecurityScan
public abstract String getType()
SecurityScan
getType
in interface SecurityScan
public TestStep getTestStep()
getTestStep
in interface SecurityScan
getTestStep
in interface Assertable
public void setTestStep(TestStep step)
setTestStep
in interface SecurityScan
public boolean isDisabled()
SecurityScan
isDisabled
in interface SecurityScan
public void setDisabled(boolean disabled)
SecurityScan
setDisabled
in interface SecurityScan
public static boolean isSecurable(TestStep testStep)
public ExecutionStrategyHolder getExecutionStrategy()
getExecutionStrategy
in interface SecurityScan
public void setExecutionStrategy(ExecutionStrategyHolder executionStrategy)
setExecutionStrategy
in interface SecurityScan
protected TestRequest getOriginalResult(SecurityTestRunnerImpl securityRunner, TestStep testStep)
protected TestRequest getRequest(TestStep testStep)
public TestAssertion addAssertion(String label)
addAssertion
in interface Assertable
public void removeAssertion(TestAssertion assertion)
removeAssertion
in interface Assertable
public TestAssertion moveAssertion(int ix, int offset)
moveAssertion
in interface Assertable
public WsdlMessageAssertion getAssertionAt(int c)
getAssertionAt
in interface Assertable
public void addAssertionsListener(AssertionsListener listener)
addAssertionsListener
in interface Assertable
public void removeAssertionsListener(AssertionsListener listener)
removeAssertionsListener
in interface Assertable
public int getAssertionCount()
getAssertionCount
in interface Assertable
public Assertable.AssertionStatus getAssertionStatus()
getAssertionStatus
in interface Assertable
public SecurityResult.ResultStatus getSecurityStatus()
public String getAssertableContentAsXml()
getAssertableContentAsXml
in interface Assertable
public String getAssertableContent()
getAssertableContent
in interface Assertable
public TestAssertionRegistry.AssertableType getAssertableType()
getAssertableType
in interface Assertable
public TestAssertion getAssertionByName(String name)
getAssertionByName
in interface Assertable
public List<TestAssertion> getAssertionList()
getAssertionList
in interface Assertable
public Map<String,TestAssertion> getAssertions()
getAssertions
in interface Assertable
public AssertionsSupport getAssertionsSupport()
public TestAssertion cloneAssertion(TestAssertion source, String name)
cloneAssertion
in interface Assertable
public String getDefaultAssertableContent()
getDefaultAssertableContent
in interface Assertable
public Interface getInterface()
getInterface
in interface Assertable
public ModelItem getModelItem()
getModelItem
in interface Assertable
public Assertable.AssertionStatus assertResponse(MessageExchange messageExchange, SubmitContext context)
assertResponse
in interface ResponseAssertion
public abstract String getConfigName()
getConfigName
in interface SecurityScan
public abstract String getConfigDescription()
getConfigDescription
in interface SecurityScan
public abstract String getHelpURL()
getHelpURL
in interface SecurityScan
protected void setSecurityScanRequestResult(SecurityScanRequestResult securityScanRequestResult)
protected SecurityScanRequestResult getSecurityScanRequestResult()
public JComponent getAdvancedSettingsPanel()
getAdvancedSettingsPanel
in interface SecurityScan
public SecurityScanResult getSecurityScanResult()
getSecurityScanResult
in interface SecurityScan
protected void reportSecurityScanException(String message)
message
- public void addWsdlAssertion(String assertionLabel)
addWsdlAssertion
in interface SecurityScan
public boolean isApplyForFailedStep()
isApplyForFailedStep
in interface SecurityScan
public void setApplyForFailedTestStep(boolean apply)
setApplyForFailedTestStep
in interface SecurityScan
public boolean isRunOnlyOnce()
isRunOnlyOnce
in interface SecurityScan
public void setRunOnlyOnce(boolean runOnlyOnce)
setRunOnlyOnce
in interface SecurityScan
public void release()
release
in interface Releasable
release
in interface SecurityScan
release
in class AbstractWsdlModelItem<SecurityScanConfig>
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertyChangeNotifier
addPropertyChangeListener
in class AbstractModelItem
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyChangeNotifier
removePropertyChangeListener
in class AbstractModelItem
public boolean isSkipFurtherRunning()
isSkipFurtherRunning
in interface SecurityScan
public void setSkipFurtherRunning(boolean skipFurtherRunning)
setSkipFurtherRunning
in interface SecurityScan
Copyright © 2019. All Rights Reserved.