All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.contrastsecurity.models.LibraryVulnerability Maven / Gradle / Ivy

There is a newer version: 3.4.2
Show newest version
package com.contrastsecurity.models;

/*-
 * #%L
 * Contrast Java SDK
 * %%
 * Copyright (C) 2021 Contrast Security, Inc.
 * %%
 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import com.google.gson.annotations.SerializedName;
import java.util.List;

public class LibraryVulnerability {
  private String name;
  private String description;
  private String authentication;
  private List references;
  private boolean visible;

  @SerializedName("access_vector")
  private String accessVector;

  @SerializedName("access_complexity")
  private String accessComplexity;

  @SerializedName("availability_impact")
  private String availabilityImpact;

  @SerializedName("confidentiality_impact")
  private String confidentialityImpact;

  @SerializedName("integrity_impact")
  private String integrityImpact;

  @SerializedName("severity_value")
  private double severityValue;

  @SerializedName("severity_code")
  private String severityCode;

  @SerializedName("has_cve")
  private boolean hasCve;

  public String getName() {
    return name;
  }

  public String getDescription() {
    return description;
  }

  public String getAuthentication() {
    return authentication;
  }

  public List getReferences() {
    return references;
  }

  public boolean isVisible() {
    return visible;
  }

  public String getAccessVector() {
    return accessVector;
  }

  public String getAccessComplexity() {
    return accessComplexity;
  }

  public String getAvailabilityImpact() {
    return availabilityImpact;
  }

  public String getConfidentialityImpact() {
    return confidentialityImpact;
  }

  public String getIntegrityImpact() {
    return integrityImpact;
  }

  public double getSeverityValue() {
    return severityValue;
  }

  public String getSeverityCode() {
    return severityCode;
  }

  public boolean hasCve() {
    return hasCve;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy