Package com.checkmarx.ast.wrapper
Class CxWrapper
- java.lang.Object
-
- com.checkmarx.ast.wrapper.CxWrapper
-
public class CxWrapper extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringauthValidate()List<String>buildResultsArguments(@NonNull UUID scanId, ReportFormat reportFormat)List<String>buildScanCancelArguments(@NonNull UUID scanId)List<String>buildScanCreateArguments(@NonNull Map<String,String> params, String additionalParameters)List<CodeBashing>codeBashingList(@NonNull String cweId, @NonNull String language, @NonNull String queryName)intgetResultsBfl(@NonNull UUID scanId, @NonNull String queryId, List<Node> resultNodes)booleanideScansEnabled()KicsRealtimeResultskicsRealtimeScan(@NonNull String fileSources, String engine, String additionalParams)KicsRemediationkicsRemediate(@NonNull String resultsFile, String kicsFile, String engine, String similarityIds)List<LearnMore>learnMore(String queryId)List<String>projectBranches(@NonNull UUID projectId, String filter)List<Project>projectList()List<Project>projectList(String filter)ProjectprojectShow(@NonNull UUID projectId)Resultsresults(@NonNull UUID scanId)Stringresults(@NonNull UUID scanId, ReportFormat reportFormat)ResultsSummaryresultsSummary(@NonNull UUID scanId)voidscanCancel(String scanId)ScanscanCreate(@NonNull Map<String,String> params)ScanscanCreate(@NonNull Map<String,String> params, String additionalParameters)List<Scan>scanList()List<Scan>scanList(String filter)ScanscanShow(@NonNull UUID scanId)StringscaRemediation(String packageFiles, String packages, String packageVersion)List<TenantSetting>tenantSettings()List<Predicate>triageShow(@NonNull UUID projectId, String similarityId, String scanType)voidtriageUpdate(@NonNull UUID projectId, String similarityId, String scanType, String state, String comment, String severity)
-
-
-
Constructor Detail
-
CxWrapper
public CxWrapper(CxConfig cxConfig) throws IOException
- Throws:
IOException
-
CxWrapper
public CxWrapper(@NonNull @NonNull CxConfig cxConfig, @NonNull @NonNull org.slf4j.Logger logger) throws IOException- Throws:
IOException
-
-
Method Detail
-
authValidate
public String authValidate() throws IOException, InterruptedException, CxException
-
scanShow
public Scan scanShow(@NonNull @NonNull UUID scanId) throws IOException, InterruptedException, CxException
-
scanList
public List<Scan> scanList() throws IOException, InterruptedException, CxException
-
scanList
public List<Scan> scanList(String filter) throws IOException, InterruptedException, CxException
-
scanCreate
public Scan scanCreate(@NonNull @NonNull Map<String,String> params) throws IOException, InterruptedException, CxException
-
scanCreate
public Scan scanCreate(@NonNull @NonNull Map<String,String> params, String additionalParameters) throws IOException, InterruptedException, CxException
-
buildScanCreateArguments
public List<String> buildScanCreateArguments(@NonNull @NonNull Map<String,String> params, String additionalParameters)
-
scanCancel
public void scanCancel(String scanId) throws IOException, InterruptedException, CxException
-
buildScanCancelArguments
public List<String> buildScanCancelArguments(@NonNull @NonNull UUID scanId)
-
triageShow
public List<Predicate> triageShow(@NonNull @NonNull UUID projectId, String similarityId, String scanType) throws IOException, InterruptedException, CxException
-
triageUpdate
public void triageUpdate(@NonNull @NonNull UUID projectId, String similarityId, String scanType, String state, String comment, String severity) throws IOException, InterruptedException, CxException
-
projectShow
public Project projectShow(@NonNull @NonNull UUID projectId) throws IOException, InterruptedException, CxException
-
projectList
public List<Project> projectList() throws IOException, InterruptedException, CxException
-
projectList
public List<Project> projectList(String filter) throws IOException, InterruptedException, CxException
-
projectBranches
public List<String> projectBranches(@NonNull @NonNull UUID projectId, String filter) throws CxException, IOException, InterruptedException
-
codeBashingList
public List<CodeBashing> codeBashingList(@NonNull @NonNull String cweId, @NonNull @NonNull String language, @NonNull @NonNull String queryName) throws IOException, InterruptedException, CxException
-
resultsSummary
public ResultsSummary resultsSummary(@NonNull @NonNull UUID scanId) throws IOException, InterruptedException, CxException
-
results
public Results results(@NonNull @NonNull UUID scanId) throws IOException, InterruptedException, CxException
-
results
public String results(@NonNull @NonNull UUID scanId, ReportFormat reportFormat) throws IOException, InterruptedException, CxException
-
scaRemediation
public String scaRemediation(String packageFiles, String packages, String packageVersion) throws CxException, IOException, InterruptedException
-
getResultsBfl
public int getResultsBfl(@NonNull @NonNull UUID scanId, @NonNull @NonNull String queryId, List<Node> resultNodes) throws IOException, InterruptedException, CxException
-
kicsRealtimeScan
public KicsRealtimeResults kicsRealtimeScan(@NonNull @NonNull String fileSources, String engine, String additionalParams) throws IOException, InterruptedException, CxException
-
kicsRemediate
public KicsRemediation kicsRemediate(@NonNull @NonNull String resultsFile, String kicsFile, String engine, String similarityIds) throws IOException, InterruptedException, CxException
-
learnMore
public List<LearnMore> learnMore(String queryId) throws CxException, IOException, InterruptedException
-
ideScansEnabled
public boolean ideScansEnabled() throws CxException, IOException, InterruptedException
-
tenantSettings
public List<TenantSetting> tenantSettings() throws CxException, IOException, InterruptedException
-
buildResultsArguments
public List<String> buildResultsArguments(@NonNull @NonNull UUID scanId, ReportFormat reportFormat)
-
-