Search in sources :

Example 1 with FalsePositiveWebResponseMetaData

use of com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebResponseMetaData in project sechub by mercedes-benz.

the class SerecoFalsePositiveWebScanStrategyTest method createValidTestFalsePositiveMetaData.

private FalsePositiveMetaData createValidTestFalsePositiveMetaData() {
    FalsePositiveMetaData metaData = new FalsePositiveMetaData();
    metaData.setCweId(4711);
    metaData.setScanType(ScanType.WEB_SCAN);
    FalsePositiveWebMetaData web = new FalsePositiveWebMetaData();
    metaData.setWeb(web);
    FalsePositiveWebRequestMetaData metaDataWebRequest = web.getRequest();
    metaDataWebRequest.setAttackVector(ATTACK_VECTOR1);
    metaDataWebRequest.setMethod(METHOD1);
    metaDataWebRequest.setProtocol("protocol1");
    metaDataWebRequest.setTarget(TARGET1);
    metaDataWebRequest.setVersion("version1");
    FalsePositiveWebResponseMetaData metaDataWebResponse = web.getResponse();
    metaDataWebResponse.setEvidence(EVIDENCE1);
    return metaData;
}
Also used : FalsePositiveMetaData(com.mercedesbenz.sechub.domain.scan.project.FalsePositiveMetaData) FalsePositiveWebResponseMetaData(com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebResponseMetaData) FalsePositiveWebMetaData(com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebMetaData) FalsePositiveWebRequestMetaData(com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebRequestMetaData)

Aggregations

FalsePositiveMetaData (com.mercedesbenz.sechub.domain.scan.project.FalsePositiveMetaData)1 FalsePositiveWebMetaData (com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebMetaData)1 FalsePositiveWebRequestMetaData (com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebRequestMetaData)1 FalsePositiveWebResponseMetaData (com.mercedesbenz.sechub.domain.scan.project.FalsePositiveWebResponseMetaData)1