public abstract class AttackLoader extends Object
For example, different loaders implementation can load an attack configuration from a file, network or other source. The loading mechanism depends on the configured settings.
| Constructor and Description |
|---|
AttackLoader(AppConfig appConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Runnable |
createTask()
Load function.
|
static AttackLoader |
get(AppConfig app_config)
Load the attack configuration from the API provider
|
protected abstract boolean |
isAllowedToCallEndpoint()
Whether the loader is allowed to call the endpoint, e.g.
|
void |
load()
Load attack actions from provider.
|
protected AppConfig appConfig
public AttackLoader(AppConfig appConfig)
protected abstract boolean isAllowedToCallEndpoint()
public void load()
throws Exception
Exception - unable to load attacksprotected abstract Runnable createTask()
public static AttackLoader get(AppConfig app_config)
app_config - the application configurationCopyright © 2020. All rights reserved.