public class ThreadFixRestClientImpl extends Object implements ThreadFixRestClient
| Constructor and Description |
|---|
ThreadFixRestClientImpl()
Default constructor that will read configuration from a local .properties file
|
ThreadFixRestClientImpl(PropertiesManager manager) |
ThreadFixRestClientImpl(String url,
String apiKey)
Custom constructor for when you want to use the in-memory properties
|
public ThreadFixRestClientImpl()
public ThreadFixRestClientImpl(PropertiesManager manager)
public RestResponse<Application> createApplication(String teamId, String name, String url)
createApplication in interface ThreadFixRestClientpublic RestResponse<Application> setParameters(String appId, String frameworkType, String repositoryUrl)
setParameters in interface ThreadFixRestClientpublic RestResponse<Organization> createTeam(String name)
createTeam in interface ThreadFixRestClientpublic RestResponse<String> deleteTeam(String teamId)
deleteTeam in interface ThreadFixRestClientpublic RestResponse<Object> updateTeam(String teamId, String name)
updateTeam in interface ThreadFixRestClientpublic RestResponse<String> getRules(String wafId, String appId)
getRules in interface ThreadFixRestClientpublic RestResponse<Waf> searchForWafByName(String name)
searchForWafByName in interface ThreadFixRestClientpublic RestResponse<Waf> searchForWafById(String wafId)
searchForWafById in interface ThreadFixRestClientpublic RestResponse<Waf[]> getWafs()
getWafs in interface ThreadFixRestClientpublic RestResponse<Object> uploadWafLog(String wafId, File logFile)
uploadWafLog in interface ThreadFixRestClientpublic RestResponse<Waf> createWaf(String name, String type)
createWaf in interface ThreadFixRestClientpublic RestResponse<Application> addWaf(String appId, String wafId)
addWaf in interface ThreadFixRestClientappId - wafId - public RestResponse<Organization[]> getAllTeams()
getAllTeams in interface ThreadFixRestClientpublic RestResponse<String> getAllTeamsPrettyPrint()
getAllTeamsPrettyPrint in interface ThreadFixRestClientpublic RestResponse<Application> searchForApplicationById(String id)
searchForApplicationById in interface ThreadFixRestClientpublic RestResponse<Application> searchForApplicationByName(String name, String teamName)
searchForApplicationByName in interface ThreadFixRestClientpublic RestResponse<Application> searchForApplicationInTeamByUniqueId(String uniqueId, String teamName)
searchForApplicationInTeamByUniqueId in interface ThreadFixRestClientpublic RestResponse<Object> updateApplication(String appId, String name, String url, String uniqueId, String applicationCriticality, String frameworkType, String repositoryType, String repositoryUrl, String repositoryBranch, String repositoryUserName, String repositoryPassword, String repositoryFolder)
updateApplication in interface ThreadFixRestClientpublic RestResponse<Organization> searchForTeamById(String id)
searchForTeamById in interface ThreadFixRestClientpublic RestResponse<Organization> searchForTeamByName(String name)
searchForTeamByName in interface ThreadFixRestClientpublic void setKey(String key)
setKey in interface ThreadFixRestClientpublic void setUrl(String url)
setUrl in interface ThreadFixRestClientpublic void setOutputFilePath(String outputFilePath)
setOutputFilePath in interface ThreadFixRestClientpublic void setMemoryKey(String key)
setMemoryKey in interface ThreadFixRestClientpublic void setMemoryUrl(String url)
setMemoryUrl in interface ThreadFixRestClientpublic RestResponse<Scan> uploadScan(String applicationId, List<String> filePaths)
uploadScan in interface ThreadFixRestClientpublic RestResponse<Scan> uploadScan(String applicationId, String filePath)
uploadScan in interface ThreadFixRestClientpublic RestResponse<Scan> uploadSingleScan(String applicationId, String filePath)
uploadSingleScan in interface ThreadFixRestClientpublic RestResponse<Scan[]> uploadMultiScan(String applicationId, List<String> filePaths)
uploadMultiScan in interface ThreadFixRestClientpublic RestResponse<ScanQueueTask> queueScan(String applicationId, String scannerType)
queueScan in interface ThreadFixRestClientpublic RestResponse<ScanQueueTask> queueScan(String applicationId, String scannerType, String targetURL, String scanConfigId)
queueScan in interface ThreadFixRestClientpublic RestResponse<Scan> searchForScanById(String scanId)
searchForScanById in interface ThreadFixRestClientpublic RestResponse<Scan[]> getScansForApplication(String applicationId)
getScansForApplication in interface ThreadFixRestClientpublic RestResponse<Application> addAppUrl(String appId, String url)
addAppUrl in interface ThreadFixRestClientpublic RestResponse<String> setTaskConfig(String appId, String scannerType, String filePath)
setTaskConfig in interface ThreadFixRestClientpublic RestResponse<Finding> addDynamicFinding(String applicationId, String vulnType, String severity, String nativeId, String parameter, String longDescription, String fullUrl, String path)
addDynamicFinding in interface ThreadFixRestClientpublic RestResponse<Finding> addStaticFinding(String applicationId, String vulnType, String severity, String nativeId, String parameter, String longDescription, String filePath, String column, String lineText, String lineNumber)
addStaticFinding in interface ThreadFixRestClientpublic RestResponse<Tag> createTag(String name, String tagType)
createTag in interface ThreadFixRestClientpublic RestResponse<Tag> searchTagById(String id)
searchTagById in interface ThreadFixRestClientpublic RestResponse<Tag[]> searchTagsByName(String name)
searchTagsByName in interface ThreadFixRestClientpublic RestResponse<Map> getTags()
getTags in interface ThreadFixRestClientpublic RestResponse<Tag[]> getAllTags()
getAllTags in interface ThreadFixRestClientpublic RestResponse<Application> addAppTag(String appId, String tagId)
addAppTag in interface ThreadFixRestClientpublic RestResponse<Application> removeAppTag(String appId, String tagId)
removeAppTag in interface ThreadFixRestClientpublic RestResponse<Tag> updateTag(String tagId, String name)
updateTag in interface ThreadFixRestClientpublic RestResponse<String> removeTag(String tagId)
removeTag in interface ThreadFixRestClientpublic RestResponse<VulnerabilityInfo[]> searchVulnerabilities(List<Integer> genericVulnerabilityIds, List<Integer> teamIds, List<Integer> applicationIds, List<String> scannerNames, List<Integer> genericSeverityValues, Integer numberVulnerabilities, String parameter, String path, Date startDate, Date endDate, Boolean showOpen, Boolean showClosed, Boolean showFalsePositive, Boolean showHidden, Integer numberMerged, Boolean showDefectPresent, Boolean showDefectNotPresent, Boolean showDefectOpen, Boolean showDefectClosed, Boolean showInconsistentClosedDefectNeedsScan, Boolean showInconsistentClosedDefectOpenInScan, Boolean showInconsistentOpenDefect, Boolean includeCustomText)
searchVulnerabilities in interface ThreadFixRestClientpublic void setUnsafeFlag(boolean unsafeFlag)
setUnsafeFlag in interface ThreadFixRestClientpublic RestResponse<String> addVulnComment(Integer vulnId, String comment, String commentTagIds)
addVulnComment in interface ThreadFixRestClientpublic RestResponse<Object> submitDefect(String[] paramNames, String[] paramValues, Integer appId)
submitDefect in interface ThreadFixRestClientpublic RestResponse<Object> submitDefect(String[] paramNames, String[] paramValues, Integer appId, Integer appTrackerId)
submitDefect in interface ThreadFixRestClientpublic RestResponse<DynamicFormField[]> getDefectTrackerFields(Integer appId)
getDefectTrackerFields in interface ThreadFixRestClientpublic RestResponse<DynamicFormField[]> getDefectTrackerFields(Integer appId, Integer appTrackerId)
getDefectTrackerFields in interface ThreadFixRestClientpublic RestResponse<Application[]> searchForApplicationsByUniqueId(String uniqueId)
searchForApplicationsByUniqueId in interface ThreadFixRestClientpublic RestResponse<Application[]> searchForApplicationsByTagId(String tagId)
searchForApplicationsByTagId in interface ThreadFixRestClientpublic RestResponse<DefectTracker> newDefectTracker(String defectTrackerTypeId, String name, String url, String defaultUsername, String defaultPassword, String defaultProductName)
newDefectTracker in interface ThreadFixRestClientpublic RestResponse<Object> listDefectTrackerProjects(String defectTrackerId)
listDefectTrackerProjects in interface ThreadFixRestClientpublic RestResponse<Object> listDefectTrackerTypes()
listDefectTrackerTypes in interface ThreadFixRestClientpublic RestResponse<Object> applicationSetDefectTracker(String applicationId, String defectTrackerId, String username, String password, String projectName)
applicationSetDefectTracker in interface ThreadFixRestClientpublic RestResponse<String> deletePolicy(String policyId)
deletePolicy in interface ThreadFixRestClientpublic RestResponse<String> deleteScheduledEmailReport(String scheduledEmailReportId)
deleteScheduledEmailReport in interface ThreadFixRestClientpublic RestResponse<String> deleteVulnerabilityFilter(String vulnerabilityFilterId)
deleteVulnerabilityFilter in interface ThreadFixRestClientpublic RestResponse<String> setCustomSeverityName(String customSeverityId, String customName)
setCustomSeverityName in interface ThreadFixRestClientpublic RestResponse<String> editSeverityFilter(String info, String low, String medium, String high, String critical, String enabled, String appId, String teamId)
editSeverityFilter in interface ThreadFixRestClientpublic RestResponse<String> deleteScanResultFilter(String id)
deleteScanResultFilter in interface ThreadFixRestClientpublic RestResponse<String> deleteChannelFilter(String id)
deleteChannelFilter in interface ThreadFixRestClientpublic RestResponse<Object> setCustomCweText(String cweId, String customText)
setCustomCweText in interface ThreadFixRestClientpublic RestResponse<String> updateCweEntries(String filePath)
updateCweEntries in interface ThreadFixRestClientpublic RestResponse<String[]> listCICDPolicies()
listCICDPolicies in interface ThreadFixRestClientpublic RestResponse<String> getCICDPolicy(String fileName)
getCICDPolicy in interface ThreadFixRestClientpublic RestResponse<String> uploadCICDPolicy(String filePath)
uploadCICDPolicy in interface ThreadFixRestClientpublic RestResponse<String> deleteCICDPolicy(String filePath)
deleteCICDPolicy in interface ThreadFixRestClientCopyright © 2017 Denim Group, Ltd.. All rights reserved.