use of com.checkmarx.sdk.config.RestClientConfig in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.
the class AstScanner method getScanConfig.
/**
* Convert scanParams to an object that is used by underlying logic in Common Client.
*/
@Override
protected RestClientConfig getScanConfig(ScanParams scanParams) {
RestClientConfig restClientConfig = new RestClientConfig();
restClientConfig.setProjectName(scanParams.getProjectName());
AstConfig astConfig = getAstSpecificConfig();
setSourceLocation(scanParams, restClientConfig, astConfig);
restClientConfig.setAstConfig(astConfig);
return restClientConfig;
}
use of com.checkmarx.sdk.config.RestClientConfig in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.
the class ClientTypeResolverTest method testDetermineClientType.
private void testDetermineClientType(String urlPropName) {
ClientTypeResolver resolver = new ClientTypeResolver(new RestClientConfig());
ClientType clientType = resolver.determineClientType(urlPropName);
Assert.assertNotNull("Client type is null.", clientType);
Assert.assertTrue("Client ID is empty.", StringUtils.isNotEmpty(clientType.getClientId()));
Assert.assertTrue("Scopes are empty.", StringUtils.isNotEmpty(clientType.getScopes()));
}
use of com.checkmarx.sdk.config.RestClientConfig in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.
the class ScaTest method initScaConfig.
protected RestClientConfig initScaConfig(boolean useOnPremAuthentication) {
RestClientConfig config = new RestClientConfig();
config.setProjectName("sdkScaProject");
config.setProgressInterval(5);
ScaConfig sca = getScaConfig(useOnPremAuthentication);
config.setScaConfig(sca);
return config;
}
use of com.checkmarx.sdk.config.RestClientConfig in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.
the class ScaTest method scan_localDirZeroCodeScan.
@Test
public void scan_localDirZeroCodeScan() throws IOException, ScannerRuntimeException {
RestClientConfig config = initScaConfig(false);
localDirScan(config);
}
use of com.checkmarx.sdk.config.RestClientConfig in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.
the class ScaTest method scan_localDirUploadIncludeSources.
@Test
public void scan_localDirUploadIncludeSources() throws IOException, ScannerRuntimeException {
RestClientConfig config = initScaConfig(false);
localDirScan(config);
}
Aggregations