Package com.denimgroup.threadfix.data.entities

Examples of com.denimgroup.threadfix.data.entities.Vulnerability


      log.warn("Null input, exiting.");
      return null;
    }

        Map<String, Object> map = new HashMap<>();
    Vulnerability vuln = allVulns.get(0);

    Application application = vuln.getApplication();
   
    if (application != null) {
      applicationService.decryptCredentials(application);
    }
   
    AbstractDefectTracker dt = DefectTrackerFactory.getTracker(application);
    if (dt == null) {
      log.warn("Unable to load Defect Tracker.");
      return null;
    }
   
    String editedSummary = summary, editedPreamble = preamble;

    // TODO handle error cases better.
    if (editedSummary == null || editedSummary.equals("")) {
      if (vuln.getGenericVulnerability() != null && vuln.getSurfaceLocation() != null) {
        editedSummary = createMessage(vuln);
      } else {
        editedSummary = "No editedSummary could be parsed.";
      }
    }

    if (editedPreamble == null || editedPreamble.equals("")) {
      if (vuln.getGenericVulnerability() != null && vuln.getSurfaceLocation() != null) {

                if(additionalScannerInfo){
                    String additionalScannerInfoStr = getAdditionalScannerInfo(allVulns);

                    if(additionalScannerInfoStr == null || additionalScannerInfoStr.equals("")){
View Full Code Here


    if (vulns == null || vulns.size() == 0) {
      return noVulnsError;
    }

    Vulnerability vuln = vulns.get(0);
    if (vuln == null || vuln.getApplication() == null) {
      return noDefectTrackerError;
    }

    Application application = vuln.getApplication();

        applicationService.decryptCredentials(application);

        AbstractDefectTracker dt = DefectTrackerFactory.getTracker(application);
    if (dt == null) {
View Full Code Here

        vulnerabilities.get(0).getApplication() == null) {
      log.warn("Null input, exiting.");
      return false;
    }
   
    Vulnerability vuln = vulnerabilities.get(0);

    Application application = vuln.getApplication();

        if (application == null) {
            return false;
        }
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.data.entities.Vulnerability

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.