com.denimgroup.threadfix.VulnerabilityInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of threadfix-cli-lib Show documentation
Show all versions of threadfix-cli-lib Show documentation
This module contains library classes for accessing the ThreadFix REST API.
The ThreadFix IDE plugins use this library to retrieve application and vulnerability
marker information, and in the ThreadFix scanner plugins to get endpoint information and
upload scans to ThreadFix applications.
The easiest way to start using the library is with the PluginClient or ThreadFixRestClient
classes. Both have constructors that take a PropertiesManager instance, which holds the ThreadFix
API key and url information. The default PropertiesManager implementation stores these properties
in threadfix.properties, but the ThreadFix plugins extend the default PropertiesManager class
to override this behavior for the target platform.
The newest version!
////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2015 Denim Group, Ltd.
//
// The contents of this file are subject to the Mozilla Public License
// Version 2.0 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
//
// Software distributed under the License is distributed on an "AS IS"
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
// License for the specific language governing rights and limitations
// under the License.
//
// The Original Code is ThreadFix.
//
// The Initial Developer of the Original Code is Denim Group, Ltd.
// Portions created by Denim Group, Ltd. are Copyright (C)
// Denim Group, Ltd. All Rights Reserved.
//
// Contributor(s): Denim Group, Ltd.
//
////////////////////////////////////////////////////////////////////////
package com.denimgroup.threadfix;
import com.denimgroup.threadfix.data.entities.*;
import java.util.List;
/**
* Created by mac on 5/21/14.
*/
public class VulnerabilityInfo {
Integer id;
Defect defect;
GenericVulnerability genericVulnerability;
GenericSeverity genericSeverity;
List vulnerabilityComments;
List documents;
String path, parameter;
Application app;
Organization team;
List channelNames;
Dependency dependency;
Boolean active = false, hidden = false, falsePositive = false;
public Boolean getActive() {
return active;
}
public void setActive(Boolean active) {
this.active = active;
}
public Boolean getHidden() {
return hidden;
}
public void setHidden(Boolean hidden) {
this.hidden = hidden;
}
public Boolean getFalsePositive() {
return falsePositive;
}
public void setFalsePositive(Boolean falsePositive) {
this.falsePositive = falsePositive;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Defect getDefect() {
return defect;
}
public void setDefect(Defect defect) {
this.defect = defect;
}
public GenericVulnerability getGenericVulnerability() {
return genericVulnerability;
}
public void setGenericVulnerability(GenericVulnerability genericVulnerability) {
this.genericVulnerability = genericVulnerability;
}
public GenericSeverity getGenericSeverity() {
return genericSeverity;
}
public void setGenericSeverity(GenericSeverity genericSeverity) {
this.genericSeverity = genericSeverity;
}
public List getVulnerabilityComments() {
return vulnerabilityComments;
}
public void setVulnerabilityComments(List vulnerabilityComments) {
this.vulnerabilityComments = vulnerabilityComments;
}
public List getDocuments() {
return documents;
}
public void setDocuments(List documents) {
this.documents = documents;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getParameter() {
return parameter;
}
public void setParameter(String parameter) {
this.parameter = parameter;
}
public Application getApp() {
return app;
}
public void setApp(Application app) {
this.app = app;
}
public Organization getTeam() {
return team;
}
public void setTeam(Organization team) {
this.team = team;
}
public List getChannelNames() {
return channelNames;
}
public void setChannelNames(List channelNames) {
this.channelNames = channelNames;
}
public Dependency getDependency() {
return dependency;
}
public void setDependency(Dependency dependency) {
this.dependency = dependency;
}
}