Search in sources :

Example 1 with InfraScanNetworkLocationProvider

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

the class PDSInfraScanProductExecutor method customize.

@Override
protected void customize(ProductExecutorData data) {
    SecHubConfiguration secHubConfiguration = data.getSechubExecutionContext().getConfiguration();
    data.setNetworkLocationProvider(new InfraScanNetworkLocationProvider(secHubConfiguration));
    ProductExecutorContext executorContext = data.getProductExecutorContext();
    PDSExecutorConfigSuppport configSupport = PDSExecutorConfigSuppport.createSupportAndAssertConfigValid(executorContext.getExecutorConfig(), systemEnvironment);
    data.setNetworkTargetDataProvider(configSupport);
}
Also used : SecHubConfiguration(com.mercedesbenz.sechub.sharedkernel.configuration.SecHubConfiguration) ProductExecutorContext(com.mercedesbenz.sechub.domain.scan.product.ProductExecutorContext) InfraScanNetworkLocationProvider(com.mercedesbenz.sechub.domain.scan.InfraScanNetworkLocationProvider)

Example 2 with InfraScanNetworkLocationProvider

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

the class NessusProductExecutor method customize.

@Override
protected void customize(ProductExecutorData data) {
    SecHubConfiguration secHubConfiguration = data.getSechubExecutionContext().getConfiguration();
    data.setNetworkLocationProvider(new InfraScanNetworkLocationProvider(secHubConfiguration));
    data.setNetworkTargetDataProvider(installSetup);
}
Also used : SecHubConfiguration(com.mercedesbenz.sechub.sharedkernel.configuration.SecHubConfiguration) InfraScanNetworkLocationProvider(com.mercedesbenz.sechub.domain.scan.InfraScanNetworkLocationProvider)

Aggregations

InfraScanNetworkLocationProvider (com.mercedesbenz.sechub.domain.scan.InfraScanNetworkLocationProvider)2 SecHubConfiguration (com.mercedesbenz.sechub.sharedkernel.configuration.SecHubConfiguration)2 ProductExecutorContext (com.mercedesbenz.sechub.domain.scan.product.ProductExecutorContext)1