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

org.owasp.dependencycheck.data.nvd.json.CvssV30 Maven / Gradle / Ivy


package org.owasp.dependencycheck.data.nvd.json;

import java.util.HashMap;
import java.util.Map;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;


/**
 * JSON Schema for Common Vulnerability Scoring System version 3.0
 * 

* * */ public class CvssV30 { /** * CVSS Version * (Required) * */ @SerializedName("version") @Expose private CvssV30 .Version version; /** * * (Required) * */ @SerializedName("vectorString") @Expose private String vectorString; @SerializedName("attackVector") @Expose private CvssV30 .AttackVectorType attackVector; @SerializedName("attackComplexity") @Expose private CvssV30 .AttackComplexityType attackComplexity; @SerializedName("privilegesRequired") @Expose private CvssV30 .PrivilegesRequiredType privilegesRequired; @SerializedName("userInteraction") @Expose private CvssV30 .UserInteractionType userInteraction; @SerializedName("scope") @Expose private CvssV30 .ScopeType scope; @SerializedName("confidentialityImpact") @Expose private CvssV30 .CiaType confidentialityImpact; @SerializedName("integrityImpact") @Expose private CvssV30 .CiaType integrityImpact; @SerializedName("availabilityImpact") @Expose private CvssV30 .CiaType availabilityImpact; /** * * (Required) * */ @SerializedName("baseScore") @Expose private Double baseScore; /** * * (Required) * */ @SerializedName("baseSeverity") @Expose private CvssV30 .SeverityType baseSeverity; @SerializedName("exploitCodeMaturity") @Expose private CvssV30 .ExploitCodeMaturityType exploitCodeMaturity; @SerializedName("remediationLevel") @Expose private CvssV30 .RemediationLevelType remediationLevel; @SerializedName("reportConfidence") @Expose private CvssV30 .ConfidenceType reportConfidence; @SerializedName("temporalScore") @Expose private Double temporalScore; @SerializedName("temporalSeverity") @Expose private CvssV30 .SeverityType temporalSeverity; @SerializedName("confidentialityRequirement") @Expose private CvssV30 .CiaRequirementType confidentialityRequirement; @SerializedName("integrityRequirement") @Expose private CvssV30 .CiaRequirementType integrityRequirement; @SerializedName("availabilityRequirement") @Expose private CvssV30 .CiaRequirementType availabilityRequirement; @SerializedName("modifiedAttackVector") @Expose private CvssV30 .ModifiedAttackVectorType modifiedAttackVector; @SerializedName("modifiedAttackComplexity") @Expose private CvssV30 .ModifiedAttackComplexityType modifiedAttackComplexity; @SerializedName("modifiedPrivilegesRequired") @Expose private CvssV30 .ModifiedPrivilegesRequiredType modifiedPrivilegesRequired; @SerializedName("modifiedUserInteraction") @Expose private CvssV30 .ModifiedUserInteractionType modifiedUserInteraction; @SerializedName("modifiedScope") @Expose private CvssV30 .ModifiedScopeType modifiedScope; @SerializedName("modifiedConfidentialityImpact") @Expose private CvssV30 .ModifiedCiaType modifiedConfidentialityImpact; @SerializedName("modifiedIntegrityImpact") @Expose private CvssV30 .ModifiedCiaType modifiedIntegrityImpact; @SerializedName("modifiedAvailabilityImpact") @Expose private CvssV30 .ModifiedCiaType modifiedAvailabilityImpact; @SerializedName("environmentalScore") @Expose private Double environmentalScore; @SerializedName("environmentalSeverity") @Expose private CvssV30 .SeverityType environmentalSeverity; /** * CVSS Version * (Required) * */ public CvssV30 .Version getVersion() { return version; } /** * CVSS Version * (Required) * */ public void setVersion(CvssV30 .Version version) { this.version = version; } /** * * (Required) * */ public String getVectorString() { return vectorString; } /** * * (Required) * */ public void setVectorString(String vectorString) { this.vectorString = vectorString; } public CvssV30 .AttackVectorType getAttackVector() { return attackVector; } public void setAttackVector(CvssV30 .AttackVectorType attackVector) { this.attackVector = attackVector; } public CvssV30 .AttackComplexityType getAttackComplexity() { return attackComplexity; } public void setAttackComplexity(CvssV30 .AttackComplexityType attackComplexity) { this.attackComplexity = attackComplexity; } public CvssV30 .PrivilegesRequiredType getPrivilegesRequired() { return privilegesRequired; } public void setPrivilegesRequired(CvssV30 .PrivilegesRequiredType privilegesRequired) { this.privilegesRequired = privilegesRequired; } public CvssV30 .UserInteractionType getUserInteraction() { return userInteraction; } public void setUserInteraction(CvssV30 .UserInteractionType userInteraction) { this.userInteraction = userInteraction; } public CvssV30 .ScopeType getScope() { return scope; } public void setScope(CvssV30 .ScopeType scope) { this.scope = scope; } public CvssV30 .CiaType getConfidentialityImpact() { return confidentialityImpact; } public void setConfidentialityImpact(CvssV30 .CiaType confidentialityImpact) { this.confidentialityImpact = confidentialityImpact; } public CvssV30 .CiaType getIntegrityImpact() { return integrityImpact; } public void setIntegrityImpact(CvssV30 .CiaType integrityImpact) { this.integrityImpact = integrityImpact; } public CvssV30 .CiaType getAvailabilityImpact() { return availabilityImpact; } public void setAvailabilityImpact(CvssV30 .CiaType availabilityImpact) { this.availabilityImpact = availabilityImpact; } /** * * (Required) * */ public Double getBaseScore() { return baseScore; } /** * * (Required) * */ public void setBaseScore(Double baseScore) { this.baseScore = baseScore; } /** * * (Required) * */ public CvssV30 .SeverityType getBaseSeverity() { return baseSeverity; } /** * * (Required) * */ public void setBaseSeverity(CvssV30 .SeverityType baseSeverity) { this.baseSeverity = baseSeverity; } public CvssV30 .ExploitCodeMaturityType getExploitCodeMaturity() { return exploitCodeMaturity; } public void setExploitCodeMaturity(CvssV30 .ExploitCodeMaturityType exploitCodeMaturity) { this.exploitCodeMaturity = exploitCodeMaturity; } public CvssV30 .RemediationLevelType getRemediationLevel() { return remediationLevel; } public void setRemediationLevel(CvssV30 .RemediationLevelType remediationLevel) { this.remediationLevel = remediationLevel; } public CvssV30 .ConfidenceType getReportConfidence() { return reportConfidence; } public void setReportConfidence(CvssV30 .ConfidenceType reportConfidence) { this.reportConfidence = reportConfidence; } public Double getTemporalScore() { return temporalScore; } public void setTemporalScore(Double temporalScore) { this.temporalScore = temporalScore; } public CvssV30 .SeverityType getTemporalSeverity() { return temporalSeverity; } public void setTemporalSeverity(CvssV30 .SeverityType temporalSeverity) { this.temporalSeverity = temporalSeverity; } public CvssV30 .CiaRequirementType getConfidentialityRequirement() { return confidentialityRequirement; } public void setConfidentialityRequirement(CvssV30 .CiaRequirementType confidentialityRequirement) { this.confidentialityRequirement = confidentialityRequirement; } public CvssV30 .CiaRequirementType getIntegrityRequirement() { return integrityRequirement; } public void setIntegrityRequirement(CvssV30 .CiaRequirementType integrityRequirement) { this.integrityRequirement = integrityRequirement; } public CvssV30 .CiaRequirementType getAvailabilityRequirement() { return availabilityRequirement; } public void setAvailabilityRequirement(CvssV30 .CiaRequirementType availabilityRequirement) { this.availabilityRequirement = availabilityRequirement; } public CvssV30 .ModifiedAttackVectorType getModifiedAttackVector() { return modifiedAttackVector; } public void setModifiedAttackVector(CvssV30 .ModifiedAttackVectorType modifiedAttackVector) { this.modifiedAttackVector = modifiedAttackVector; } public CvssV30 .ModifiedAttackComplexityType getModifiedAttackComplexity() { return modifiedAttackComplexity; } public void setModifiedAttackComplexity(CvssV30 .ModifiedAttackComplexityType modifiedAttackComplexity) { this.modifiedAttackComplexity = modifiedAttackComplexity; } public CvssV30 .ModifiedPrivilegesRequiredType getModifiedPrivilegesRequired() { return modifiedPrivilegesRequired; } public void setModifiedPrivilegesRequired(CvssV30 .ModifiedPrivilegesRequiredType modifiedPrivilegesRequired) { this.modifiedPrivilegesRequired = modifiedPrivilegesRequired; } public CvssV30 .ModifiedUserInteractionType getModifiedUserInteraction() { return modifiedUserInteraction; } public void setModifiedUserInteraction(CvssV30 .ModifiedUserInteractionType modifiedUserInteraction) { this.modifiedUserInteraction = modifiedUserInteraction; } public CvssV30 .ModifiedScopeType getModifiedScope() { return modifiedScope; } public void setModifiedScope(CvssV30 .ModifiedScopeType modifiedScope) { this.modifiedScope = modifiedScope; } public CvssV30 .ModifiedCiaType getModifiedConfidentialityImpact() { return modifiedConfidentialityImpact; } public void setModifiedConfidentialityImpact(CvssV30 .ModifiedCiaType modifiedConfidentialityImpact) { this.modifiedConfidentialityImpact = modifiedConfidentialityImpact; } public CvssV30 .ModifiedCiaType getModifiedIntegrityImpact() { return modifiedIntegrityImpact; } public void setModifiedIntegrityImpact(CvssV30 .ModifiedCiaType modifiedIntegrityImpact) { this.modifiedIntegrityImpact = modifiedIntegrityImpact; } public CvssV30 .ModifiedCiaType getModifiedAvailabilityImpact() { return modifiedAvailabilityImpact; } public void setModifiedAvailabilityImpact(CvssV30 .ModifiedCiaType modifiedAvailabilityImpact) { this.modifiedAvailabilityImpact = modifiedAvailabilityImpact; } public Double getEnvironmentalScore() { return environmentalScore; } public void setEnvironmentalScore(Double environmentalScore) { this.environmentalScore = environmentalScore; } public CvssV30 .SeverityType getEnvironmentalSeverity() { return environmentalSeverity; } public void setEnvironmentalSeverity(CvssV30 .SeverityType environmentalSeverity) { this.environmentalSeverity = environmentalSeverity; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(CvssV30 .class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("version"); sb.append('='); sb.append(((this.version == null)?"":this.version)); sb.append(','); sb.append("vectorString"); sb.append('='); sb.append(((this.vectorString == null)?"":this.vectorString)); sb.append(','); sb.append("attackVector"); sb.append('='); sb.append(((this.attackVector == null)?"":this.attackVector)); sb.append(','); sb.append("attackComplexity"); sb.append('='); sb.append(((this.attackComplexity == null)?"":this.attackComplexity)); sb.append(','); sb.append("privilegesRequired"); sb.append('='); sb.append(((this.privilegesRequired == null)?"":this.privilegesRequired)); sb.append(','); sb.append("userInteraction"); sb.append('='); sb.append(((this.userInteraction == null)?"":this.userInteraction)); sb.append(','); sb.append("scope"); sb.append('='); sb.append(((this.scope == null)?"":this.scope)); sb.append(','); sb.append("confidentialityImpact"); sb.append('='); sb.append(((this.confidentialityImpact == null)?"":this.confidentialityImpact)); sb.append(','); sb.append("integrityImpact"); sb.append('='); sb.append(((this.integrityImpact == null)?"":this.integrityImpact)); sb.append(','); sb.append("availabilityImpact"); sb.append('='); sb.append(((this.availabilityImpact == null)?"":this.availabilityImpact)); sb.append(','); sb.append("baseScore"); sb.append('='); sb.append(((this.baseScore == null)?"":this.baseScore)); sb.append(','); sb.append("baseSeverity"); sb.append('='); sb.append(((this.baseSeverity == null)?"":this.baseSeverity)); sb.append(','); sb.append("exploitCodeMaturity"); sb.append('='); sb.append(((this.exploitCodeMaturity == null)?"":this.exploitCodeMaturity)); sb.append(','); sb.append("remediationLevel"); sb.append('='); sb.append(((this.remediationLevel == null)?"":this.remediationLevel)); sb.append(','); sb.append("reportConfidence"); sb.append('='); sb.append(((this.reportConfidence == null)?"":this.reportConfidence)); sb.append(','); sb.append("temporalScore"); sb.append('='); sb.append(((this.temporalScore == null)?"":this.temporalScore)); sb.append(','); sb.append("temporalSeverity"); sb.append('='); sb.append(((this.temporalSeverity == null)?"":this.temporalSeverity)); sb.append(','); sb.append("confidentialityRequirement"); sb.append('='); sb.append(((this.confidentialityRequirement == null)?"":this.confidentialityRequirement)); sb.append(','); sb.append("integrityRequirement"); sb.append('='); sb.append(((this.integrityRequirement == null)?"":this.integrityRequirement)); sb.append(','); sb.append("availabilityRequirement"); sb.append('='); sb.append(((this.availabilityRequirement == null)?"":this.availabilityRequirement)); sb.append(','); sb.append("modifiedAttackVector"); sb.append('='); sb.append(((this.modifiedAttackVector == null)?"":this.modifiedAttackVector)); sb.append(','); sb.append("modifiedAttackComplexity"); sb.append('='); sb.append(((this.modifiedAttackComplexity == null)?"":this.modifiedAttackComplexity)); sb.append(','); sb.append("modifiedPrivilegesRequired"); sb.append('='); sb.append(((this.modifiedPrivilegesRequired == null)?"":this.modifiedPrivilegesRequired)); sb.append(','); sb.append("modifiedUserInteraction"); sb.append('='); sb.append(((this.modifiedUserInteraction == null)?"":this.modifiedUserInteraction)); sb.append(','); sb.append("modifiedScope"); sb.append('='); sb.append(((this.modifiedScope == null)?"":this.modifiedScope)); sb.append(','); sb.append("modifiedConfidentialityImpact"); sb.append('='); sb.append(((this.modifiedConfidentialityImpact == null)?"":this.modifiedConfidentialityImpact)); sb.append(','); sb.append("modifiedIntegrityImpact"); sb.append('='); sb.append(((this.modifiedIntegrityImpact == null)?"":this.modifiedIntegrityImpact)); sb.append(','); sb.append("modifiedAvailabilityImpact"); sb.append('='); sb.append(((this.modifiedAvailabilityImpact == null)?"":this.modifiedAvailabilityImpact)); sb.append(','); sb.append("environmentalScore"); sb.append('='); sb.append(((this.environmentalScore == null)?"":this.environmentalScore)); sb.append(','); sb.append("environmentalSeverity"); sb.append('='); sb.append(((this.environmentalSeverity == null)?"":this.environmentalSeverity)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.modifiedPrivilegesRequired == null)? 0 :this.modifiedPrivilegesRequired.hashCode())); result = ((result* 31)+((this.reportConfidence == null)? 0 :this.reportConfidence.hashCode())); result = ((result* 31)+((this.modifiedConfidentialityImpact == null)? 0 :this.modifiedConfidentialityImpact.hashCode())); result = ((result* 31)+((this.availabilityImpact == null)? 0 :this.availabilityImpact.hashCode())); result = ((result* 31)+((this.privilegesRequired == null)? 0 :this.privilegesRequired.hashCode())); result = ((result* 31)+((this.baseScore == null)? 0 :this.baseScore.hashCode())); result = ((result* 31)+((this.temporalSeverity == null)? 0 :this.temporalSeverity.hashCode())); result = ((result* 31)+((this.userInteraction == null)? 0 :this.userInteraction.hashCode())); result = ((result* 31)+((this.integrityRequirement == null)? 0 :this.integrityRequirement.hashCode())); result = ((result* 31)+((this.modifiedAvailabilityImpact == null)? 0 :this.modifiedAvailabilityImpact.hashCode())); result = ((result* 31)+((this.availabilityRequirement == null)? 0 :this.availabilityRequirement.hashCode())); result = ((result* 31)+((this.modifiedScope == null)? 0 :this.modifiedScope.hashCode())); result = ((result* 31)+((this.attackComplexity == null)? 0 :this.attackComplexity.hashCode())); result = ((result* 31)+((this.scope == null)? 0 :this.scope.hashCode())); result = ((result* 31)+((this.attackVector == null)? 0 :this.attackVector.hashCode())); result = ((result* 31)+((this.integrityImpact == null)? 0 :this.integrityImpact.hashCode())); result = ((result* 31)+((this.modifiedIntegrityImpact == null)? 0 :this.modifiedIntegrityImpact.hashCode())); result = ((result* 31)+((this.vectorString == null)? 0 :this.vectorString.hashCode())); result = ((result* 31)+((this.exploitCodeMaturity == null)? 0 :this.exploitCodeMaturity.hashCode())); result = ((result* 31)+((this.temporalScore == null)? 0 :this.temporalScore.hashCode())); result = ((result* 31)+((this.modifiedAttackVector == null)? 0 :this.modifiedAttackVector.hashCode())); result = ((result* 31)+((this.version == null)? 0 :this.version.hashCode())); result = ((result* 31)+((this.confidentialityRequirement == null)? 0 :this.confidentialityRequirement.hashCode())); result = ((result* 31)+((this.remediationLevel == null)? 0 :this.remediationLevel.hashCode())); result = ((result* 31)+((this.modifiedUserInteraction == null)? 0 :this.modifiedUserInteraction.hashCode())); result = ((result* 31)+((this.modifiedAttackComplexity == null)? 0 :this.modifiedAttackComplexity.hashCode())); result = ((result* 31)+((this.baseSeverity == null)? 0 :this.baseSeverity.hashCode())); result = ((result* 31)+((this.confidentialityImpact == null)? 0 :this.confidentialityImpact.hashCode())); result = ((result* 31)+((this.environmentalScore == null)? 0 :this.environmentalScore.hashCode())); result = ((result* 31)+((this.environmentalSeverity == null)? 0 :this.environmentalSeverity.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof CvssV30) == false) { return false; } CvssV30 rhs = ((CvssV30) other); return (((((((((((((((((((((((((((((((this.modifiedPrivilegesRequired == rhs.modifiedPrivilegesRequired)||((this.modifiedPrivilegesRequired!= null)&&this.modifiedPrivilegesRequired.equals(rhs.modifiedPrivilegesRequired)))&&((this.reportConfidence == rhs.reportConfidence)||((this.reportConfidence!= null)&&this.reportConfidence.equals(rhs.reportConfidence))))&&((this.modifiedConfidentialityImpact == rhs.modifiedConfidentialityImpact)||((this.modifiedConfidentialityImpact!= null)&&this.modifiedConfidentialityImpact.equals(rhs.modifiedConfidentialityImpact))))&&((this.availabilityImpact == rhs.availabilityImpact)||((this.availabilityImpact!= null)&&this.availabilityImpact.equals(rhs.availabilityImpact))))&&((this.privilegesRequired == rhs.privilegesRequired)||((this.privilegesRequired!= null)&&this.privilegesRequired.equals(rhs.privilegesRequired))))&&((this.baseScore == rhs.baseScore)||((this.baseScore!= null)&&this.baseScore.equals(rhs.baseScore))))&&((this.temporalSeverity == rhs.temporalSeverity)||((this.temporalSeverity!= null)&&this.temporalSeverity.equals(rhs.temporalSeverity))))&&((this.userInteraction == rhs.userInteraction)||((this.userInteraction!= null)&&this.userInteraction.equals(rhs.userInteraction))))&&((this.integrityRequirement == rhs.integrityRequirement)||((this.integrityRequirement!= null)&&this.integrityRequirement.equals(rhs.integrityRequirement))))&&((this.modifiedAvailabilityImpact == rhs.modifiedAvailabilityImpact)||((this.modifiedAvailabilityImpact!= null)&&this.modifiedAvailabilityImpact.equals(rhs.modifiedAvailabilityImpact))))&&((this.availabilityRequirement == rhs.availabilityRequirement)||((this.availabilityRequirement!= null)&&this.availabilityRequirement.equals(rhs.availabilityRequirement))))&&((this.modifiedScope == rhs.modifiedScope)||((this.modifiedScope!= null)&&this.modifiedScope.equals(rhs.modifiedScope))))&&((this.attackComplexity == rhs.attackComplexity)||((this.attackComplexity!= null)&&this.attackComplexity.equals(rhs.attackComplexity))))&&((this.scope == rhs.scope)||((this.scope!= null)&&this.scope.equals(rhs.scope))))&&((this.attackVector == rhs.attackVector)||((this.attackVector!= null)&&this.attackVector.equals(rhs.attackVector))))&&((this.integrityImpact == rhs.integrityImpact)||((this.integrityImpact!= null)&&this.integrityImpact.equals(rhs.integrityImpact))))&&((this.modifiedIntegrityImpact == rhs.modifiedIntegrityImpact)||((this.modifiedIntegrityImpact!= null)&&this.modifiedIntegrityImpact.equals(rhs.modifiedIntegrityImpact))))&&((this.vectorString == rhs.vectorString)||((this.vectorString!= null)&&this.vectorString.equals(rhs.vectorString))))&&((this.exploitCodeMaturity == rhs.exploitCodeMaturity)||((this.exploitCodeMaturity!= null)&&this.exploitCodeMaturity.equals(rhs.exploitCodeMaturity))))&&((this.temporalScore == rhs.temporalScore)||((this.temporalScore!= null)&&this.temporalScore.equals(rhs.temporalScore))))&&((this.modifiedAttackVector == rhs.modifiedAttackVector)||((this.modifiedAttackVector!= null)&&this.modifiedAttackVector.equals(rhs.modifiedAttackVector))))&&((this.version == rhs.version)||((this.version!= null)&&this.version.equals(rhs.version))))&&((this.confidentialityRequirement == rhs.confidentialityRequirement)||((this.confidentialityRequirement!= null)&&this.confidentialityRequirement.equals(rhs.confidentialityRequirement))))&&((this.remediationLevel == rhs.remediationLevel)||((this.remediationLevel!= null)&&this.remediationLevel.equals(rhs.remediationLevel))))&&((this.modifiedUserInteraction == rhs.modifiedUserInteraction)||((this.modifiedUserInteraction!= null)&&this.modifiedUserInteraction.equals(rhs.modifiedUserInteraction))))&&((this.modifiedAttackComplexity == rhs.modifiedAttackComplexity)||((this.modifiedAttackComplexity!= null)&&this.modifiedAttackComplexity.equals(rhs.modifiedAttackComplexity))))&&((this.baseSeverity == rhs.baseSeverity)||((this.baseSeverity!= null)&&this.baseSeverity.equals(rhs.baseSeverity))))&&((this.confidentialityImpact == rhs.confidentialityImpact)||((this.confidentialityImpact!= null)&&this.confidentialityImpact.equals(rhs.confidentialityImpact))))&&((this.environmentalScore == rhs.environmentalScore)||((this.environmentalScore!= null)&&this.environmentalScore.equals(rhs.environmentalScore))))&&((this.environmentalSeverity == rhs.environmentalSeverity)||((this.environmentalSeverity!= null)&&this.environmentalSeverity.equals(rhs.environmentalSeverity)))); } public enum AttackComplexityType { @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("LOW") LOW("LOW"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .AttackComplexityType c: values()) { CONSTANTS.put(c.value, c); } } private AttackComplexityType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .AttackComplexityType fromValue(String value) { CvssV30 .AttackComplexityType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum AttackVectorType { @SerializedName("NETWORK") NETWORK("NETWORK"), @SerializedName("ADJACENT_NETWORK") ADJACENT_NETWORK("ADJACENT_NETWORK"), @SerializedName("LOCAL") LOCAL("LOCAL"), @SerializedName("PHYSICAL") PHYSICAL("PHYSICAL"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .AttackVectorType c: values()) { CONSTANTS.put(c.value, c); } } private AttackVectorType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .AttackVectorType fromValue(String value) { CvssV30 .AttackVectorType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum CiaRequirementType { @SerializedName("LOW") LOW("LOW"), @SerializedName("MEDIUM") MEDIUM("MEDIUM"), @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .CiaRequirementType c: values()) { CONSTANTS.put(c.value, c); } } private CiaRequirementType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .CiaRequirementType fromValue(String value) { CvssV30 .CiaRequirementType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum CiaType { @SerializedName("NONE") NONE("NONE"), @SerializedName("LOW") LOW("LOW"), @SerializedName("HIGH") HIGH("HIGH"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .CiaType c: values()) { CONSTANTS.put(c.value, c); } } private CiaType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .CiaType fromValue(String value) { CvssV30 .CiaType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ConfidenceType { @SerializedName("UNKNOWN") UNKNOWN("UNKNOWN"), @SerializedName("REASONABLE") REASONABLE("REASONABLE"), @SerializedName("CONFIRMED") CONFIRMED("CONFIRMED"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ConfidenceType c: values()) { CONSTANTS.put(c.value, c); } } private ConfidenceType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ConfidenceType fromValue(String value) { CvssV30 .ConfidenceType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ExploitCodeMaturityType { @SerializedName("UNPROVEN") UNPROVEN("UNPROVEN"), @SerializedName("PROOF_OF_CONCEPT") PROOF_OF_CONCEPT("PROOF_OF_CONCEPT"), @SerializedName("FUNCTIONAL") FUNCTIONAL("FUNCTIONAL"), @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ExploitCodeMaturityType c: values()) { CONSTANTS.put(c.value, c); } } private ExploitCodeMaturityType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ExploitCodeMaturityType fromValue(String value) { CvssV30 .ExploitCodeMaturityType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ModifiedAttackComplexityType { @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("LOW") LOW("LOW"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ModifiedAttackComplexityType c: values()) { CONSTANTS.put(c.value, c); } } private ModifiedAttackComplexityType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ModifiedAttackComplexityType fromValue(String value) { CvssV30 .ModifiedAttackComplexityType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ModifiedAttackVectorType { @SerializedName("NETWORK") NETWORK("NETWORK"), @SerializedName("ADJACENT_NETWORK") ADJACENT_NETWORK("ADJACENT_NETWORK"), @SerializedName("LOCAL") LOCAL("LOCAL"), @SerializedName("PHYSICAL") PHYSICAL("PHYSICAL"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ModifiedAttackVectorType c: values()) { CONSTANTS.put(c.value, c); } } private ModifiedAttackVectorType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ModifiedAttackVectorType fromValue(String value) { CvssV30 .ModifiedAttackVectorType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ModifiedCiaType { @SerializedName("NONE") NONE("NONE"), @SerializedName("LOW") LOW("LOW"), @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ModifiedCiaType c: values()) { CONSTANTS.put(c.value, c); } } private ModifiedCiaType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ModifiedCiaType fromValue(String value) { CvssV30 .ModifiedCiaType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ModifiedPrivilegesRequiredType { @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("LOW") LOW("LOW"), @SerializedName("NONE") NONE("NONE"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ModifiedPrivilegesRequiredType c: values()) { CONSTANTS.put(c.value, c); } } private ModifiedPrivilegesRequiredType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ModifiedPrivilegesRequiredType fromValue(String value) { CvssV30 .ModifiedPrivilegesRequiredType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ModifiedScopeType { @SerializedName("UNCHANGED") UNCHANGED("UNCHANGED"), @SerializedName("CHANGED") CHANGED("CHANGED"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ModifiedScopeType c: values()) { CONSTANTS.put(c.value, c); } } private ModifiedScopeType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ModifiedScopeType fromValue(String value) { CvssV30 .ModifiedScopeType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ModifiedUserInteractionType { @SerializedName("NONE") NONE("NONE"), @SerializedName("REQUIRED") REQUIRED("REQUIRED"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ModifiedUserInteractionType c: values()) { CONSTANTS.put(c.value, c); } } private ModifiedUserInteractionType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ModifiedUserInteractionType fromValue(String value) { CvssV30 .ModifiedUserInteractionType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum PrivilegesRequiredType { @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("LOW") LOW("LOW"), @SerializedName("NONE") NONE("NONE"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .PrivilegesRequiredType c: values()) { CONSTANTS.put(c.value, c); } } private PrivilegesRequiredType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .PrivilegesRequiredType fromValue(String value) { CvssV30 .PrivilegesRequiredType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum RemediationLevelType { @SerializedName("OFFICIAL_FIX") OFFICIAL_FIX("OFFICIAL_FIX"), @SerializedName("TEMPORARY_FIX") TEMPORARY_FIX("TEMPORARY_FIX"), @SerializedName("WORKAROUND") WORKAROUND("WORKAROUND"), @SerializedName("UNAVAILABLE") UNAVAILABLE("UNAVAILABLE"), @SerializedName("NOT_DEFINED") NOT_DEFINED("NOT_DEFINED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .RemediationLevelType c: values()) { CONSTANTS.put(c.value, c); } } private RemediationLevelType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .RemediationLevelType fromValue(String value) { CvssV30 .RemediationLevelType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum ScopeType { @SerializedName("UNCHANGED") UNCHANGED("UNCHANGED"), @SerializedName("CHANGED") CHANGED("CHANGED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .ScopeType c: values()) { CONSTANTS.put(c.value, c); } } private ScopeType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .ScopeType fromValue(String value) { CvssV30 .ScopeType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum SeverityType { @SerializedName("NONE") NONE("NONE"), @SerializedName("LOW") LOW("LOW"), @SerializedName("MEDIUM") MEDIUM("MEDIUM"), @SerializedName("HIGH") HIGH("HIGH"), @SerializedName("CRITICAL") CRITICAL("CRITICAL"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .SeverityType c: values()) { CONSTANTS.put(c.value, c); } } private SeverityType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .SeverityType fromValue(String value) { CvssV30 .SeverityType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum UserInteractionType { @SerializedName("NONE") NONE("NONE"), @SerializedName("REQUIRED") REQUIRED("REQUIRED"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .UserInteractionType c: values()) { CONSTANTS.put(c.value, c); } } private UserInteractionType(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .UserInteractionType fromValue(String value) { CvssV30 .UserInteractionType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } public enum Version { @SerializedName("3.0") _3_0("3.0"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (CvssV30 .Version c: values()) { CONSTANTS.put(c.value, c); } } private Version(String value) { this.value = value; } @Override public String toString() { return this.value; } public String value() { return this.value; } public static CvssV30 .Version fromValue(String value) { CvssV30 .Version constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy