de.rub.nds.tlsattacker.attacks.config.AttackConfig Maven / Gradle / Ivy
/**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2021 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattacker.attacks.config;
import com.beust.jcommander.Parameter;
import de.rub.nds.tlsattacker.core.config.TLSDelegateConfig;
import de.rub.nds.tlsattacker.core.config.delegate.GeneralDelegate;
/**
*
*/
public abstract class AttackConfig extends TLSDelegateConfig {
@Parameter(names = "-skipConnectionCheck",
description = "If set to true the Attacker will not check if the " + "target is reachable.")
private boolean skipConnectionCheck = false;
/**
* @param delegate
*/
public AttackConfig(GeneralDelegate delegate) {
super(delegate);
}
/**
* @return
*/
public abstract boolean isExecuteAttack();
/**
* @return
*/
public boolean isSkipConnectionCheck() {
return skipConnectionCheck;
}
/**
* @param skipConnectionCheck
*/
public void setSkipConnectionCheck(boolean skipConnectionCheck) {
this.skipConnectionCheck = skipConnectionCheck;
}
}