public final class CVSS extends GeneratedMessage implements CVSSOrBuilder
Common Vulnerability Scoring System.
For details, see https://www.first.org/cvss/specification-document
This is a message we will try to use for storing various versions of CVSS
rather than making a separate proto for storing a specific version.
Protobuf type grafeas.v1.CVSS
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ATTACK_COMPLEXITY_FIELD_NUMBER
public static final int ATTACK_COMPLEXITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ATTACK_REQUIREMENTS_FIELD_NUMBER
public static final int ATTACK_REQUIREMENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ATTACK_VECTOR_FIELD_NUMBER
public static final int ATTACK_VECTOR_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AUTHENTICATION_FIELD_NUMBER
public static final int AUTHENTICATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AVAILABILITY_IMPACT_FIELD_NUMBER
public static final int AVAILABILITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BASE_SCORE_FIELD_NUMBER
public static final int BASE_SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONFIDENTIALITY_IMPACT_FIELD_NUMBER
public static final int CONFIDENTIALITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXPLOITABILITY_SCORE_FIELD_NUMBER
public static final int EXPLOITABILITY_SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXPLOIT_MATURITY_FIELD_NUMBER
public static final int EXPLOIT_MATURITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
IMPACT_SCORE_FIELD_NUMBER
public static final int IMPACT_SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
INTEGRITY_IMPACT_FIELD_NUMBER
public static final int INTEGRITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PRIVILEGES_REQUIRED_FIELD_NUMBER
public static final int PRIVILEGES_REQUIRED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_FIELD_NUMBER
public static final int SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_FIELD_NUMBER
public static final int SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_FIELD_NUMBER
public static final int SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
USER_INTERACTION_FIELD_NUMBER
public static final int USER_INTERACTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_FIELD_NUMBER
public static final int VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_FIELD_NUMBER
public static final int VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VULNERABLE_SYSTEM_INTEGRITY_IMPACT_FIELD_NUMBER
public static final int VULNERABLE_SYSTEM_INTEGRITY_IMPACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CVSS getDefaultInstance()
| Returns |
| Type |
Description |
CVSS |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CVSS.Builder newBuilder()
newBuilder(CVSS prototype)
public static CVSS.Builder newBuilder(CVSS prototype)
| Parameter |
| Name |
Description |
prototype |
CVSS
|
public static CVSS parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
CVSS |
|
public static CVSS parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
CVSS |
|
parseFrom(byte[] data)
public static CVSS parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
CVSS |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CVSS parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
CVSS |
|
parseFrom(ByteString data)
public static CVSS parseFrom(ByteString data)
| Returns |
| Type |
Description |
CVSS |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CVSS parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
CVSS |
|
public static CVSS parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
CVSS |
|
public static CVSS parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
CVSS |
|
public static CVSS parseFrom(InputStream input)
| Returns |
| Type |
Description |
CVSS |
|
public static CVSS parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
CVSS |
|
parseFrom(ByteBuffer data)
public static CVSS parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
CVSS |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CVSS parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
CVSS |
|
parser()
public static Parser<CVSS> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAttackComplexity()
public CVSS.AttackComplexity getAttackComplexity()
Attack Complexity (AC). Defined in CVSS v2, v3, v4.
.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;
getAttackComplexityValue()
public int getAttackComplexityValue()
Attack Complexity (AC). Defined in CVSS v2, v3, v4.
.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for attackComplexity.
|
getAttackRequirements()
public CVSS.AttackRequirements getAttackRequirements()
Attack Requirements (AT). Defined in CVSS v4.
.grafeas.v1.CVSS.AttackRequirements attack_requirements = 13;
getAttackRequirementsValue()
public int getAttackRequirementsValue()
Attack Requirements (AT). Defined in CVSS v4.
.grafeas.v1.CVSS.AttackRequirements attack_requirements = 13;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for attackRequirements.
|
getAttackVector()
public CVSS.AttackVector getAttackVector()
Attack Vector (AV). Defined in CVSS v2, v3, v4.
.grafeas.v1.CVSS.AttackVector attack_vector = 4;
getAttackVectorValue()
public int getAttackVectorValue()
Attack Vector (AV). Defined in CVSS v2, v3, v4.
.grafeas.v1.CVSS.AttackVector attack_vector = 4;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for attackVector.
|
getAuthentication()
public CVSS.Authentication getAuthentication()
Authentication (Au). Defined in CVSS v2.
.grafeas.v1.CVSS.Authentication authentication = 6;
getAuthenticationValue()
public int getAuthenticationValue()
Authentication (Au). Defined in CVSS v2.
.grafeas.v1.CVSS.Authentication authentication = 6;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for authentication.
|
getAvailabilityImpact()
public CVSS.Impact getAvailabilityImpact()
Availability Impact (A). Defined in CVSS v2, v3.
.grafeas.v1.CVSS.Impact availability_impact = 12;
| Returns |
| Type |
Description |
CVSS.Impact |
The availabilityImpact.
|
getAvailabilityImpactValue()
public int getAvailabilityImpactValue()
Availability Impact (A). Defined in CVSS v2, v3.
.grafeas.v1.CVSS.Impact availability_impact = 12;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for availabilityImpact.
|
getBaseScore()
public float getBaseScore()
The base score is a function of the base metric scores.
float base_score = 1;
| Returns |
| Type |
Description |
float |
The baseScore.
|
getConfidentialityImpact()
public CVSS.Impact getConfidentialityImpact()
Confidentiality Impact (C). Defined in CVSS v2, v3.
.grafeas.v1.CVSS.Impact confidentiality_impact = 10;
| Returns |
| Type |
Description |
CVSS.Impact |
The confidentialityImpact.
|
getConfidentialityImpactValue()
public int getConfidentialityImpactValue()
Confidentiality Impact (C). Defined in CVSS v2, v3.
.grafeas.v1.CVSS.Impact confidentiality_impact = 10;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for confidentialityImpact.
|
getDefaultInstanceForType()
public CVSS getDefaultInstanceForType()
| Returns |
| Type |
Description |
CVSS |
|
getExploitMaturity()
public CVSS.ExploitMaturity getExploitMaturity()
Exploit Maturity (E). Defined in CVSS v4.
.grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20;
getExploitMaturityValue()
public int getExploitMaturityValue()
Exploit Maturity (E). Defined in CVSS v4.
.grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for exploitMaturity.
|
getExploitabilityScore()
public float getExploitabilityScore()
float exploitability_score = 2;
| Returns |
| Type |
Description |
float |
The exploitabilityScore.
|
getImpactScore()
public float getImpactScore()
| Returns |
| Type |
Description |
float |
The impactScore.
|
getIntegrityImpact()
public CVSS.Impact getIntegrityImpact()
Integrity Impact (I). Defined in CVSS v2, v3.
.grafeas.v1.CVSS.Impact integrity_impact = 11;
| Returns |
| Type |
Description |
CVSS.Impact |
The integrityImpact.
|
getIntegrityImpactValue()
public int getIntegrityImpactValue()
Integrity Impact (I). Defined in CVSS v2, v3.
.grafeas.v1.CVSS.Impact integrity_impact = 11;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for integrityImpact.
|
getParserForType()
public Parser<CVSS> getParserForType()
Overrides
getPrivilegesRequired()
public CVSS.PrivilegesRequired getPrivilegesRequired()
Privileges Required (PR). Defined in CVSS v3, v4.
.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;
getPrivilegesRequiredValue()
public int getPrivilegesRequiredValue()
Privileges Required (PR). Defined in CVSS v3, v4.
.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for privilegesRequired.
|
getScope()
public CVSS.Scope getScope()
Scope (S). Defined in CVSS v3.
.grafeas.v1.CVSS.Scope scope = 9;
getScopeValue()
public int getScopeValue()
Scope (S). Defined in CVSS v3.
.grafeas.v1.CVSS.Scope scope = 9;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for scope.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSubsequentSystemAvailabilityImpact()
public CVSS.Impact getSubsequentSystemAvailabilityImpact()
Subsequent System Availability Impact (SA). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19;
| Returns |
| Type |
Description |
CVSS.Impact |
The subsequentSystemAvailabilityImpact.
|
getSubsequentSystemAvailabilityImpactValue()
public int getSubsequentSystemAvailabilityImpactValue()
Subsequent System Availability Impact (SA). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for subsequentSystemAvailabilityImpact.
|
getSubsequentSystemConfidentialityImpact()
public CVSS.Impact getSubsequentSystemConfidentialityImpact()
Subsequent System Confidentiality Impact (SC). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17;
| Returns |
| Type |
Description |
CVSS.Impact |
The subsequentSystemConfidentialityImpact.
|
getSubsequentSystemConfidentialityImpactValue()
public int getSubsequentSystemConfidentialityImpactValue()
Subsequent System Confidentiality Impact (SC). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for subsequentSystemConfidentialityImpact.
|
getSubsequentSystemIntegrityImpact()
public CVSS.Impact getSubsequentSystemIntegrityImpact()
Subsequent System Integrity Impact (SI). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18;
| Returns |
| Type |
Description |
CVSS.Impact |
The subsequentSystemIntegrityImpact.
|
getSubsequentSystemIntegrityImpactValue()
public int getSubsequentSystemIntegrityImpactValue()
Subsequent System Integrity Impact (SI). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for subsequentSystemIntegrityImpact.
|
getUserInteraction()
public CVSS.UserInteraction getUserInteraction()
User Interaction (UI). Defined in CVSS v3, v4.
.grafeas.v1.CVSS.UserInteraction user_interaction = 8;
getUserInteractionValue()
public int getUserInteractionValue()
User Interaction (UI). Defined in CVSS v3, v4.
.grafeas.v1.CVSS.UserInteraction user_interaction = 8;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for userInteraction.
|
getVulnerableSystemAvailabilityImpact()
public CVSS.Impact getVulnerableSystemAvailabilityImpact()
Vulnerable System Availability Impact (VA). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16;
| Returns |
| Type |
Description |
CVSS.Impact |
The vulnerableSystemAvailabilityImpact.
|
getVulnerableSystemAvailabilityImpactValue()
public int getVulnerableSystemAvailabilityImpactValue()
Vulnerable System Availability Impact (VA). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for vulnerableSystemAvailabilityImpact.
|
getVulnerableSystemConfidentialityImpact()
public CVSS.Impact getVulnerableSystemConfidentialityImpact()
Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14;
| Returns |
| Type |
Description |
CVSS.Impact |
The vulnerableSystemConfidentialityImpact.
|
getVulnerableSystemConfidentialityImpactValue()
public int getVulnerableSystemConfidentialityImpactValue()
Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for vulnerableSystemConfidentialityImpact.
|
getVulnerableSystemIntegrityImpact()
public CVSS.Impact getVulnerableSystemIntegrityImpact()
Vulnerable System Integrity Impact (VI). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15;
| Returns |
| Type |
Description |
CVSS.Impact |
The vulnerableSystemIntegrityImpact.
|
getVulnerableSystemIntegrityImpactValue()
public int getVulnerableSystemIntegrityImpactValue()
Vulnerable System Integrity Impact (VI). Defined in CVSS v4.
.grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for vulnerableSystemIntegrityImpact.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CVSS.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CVSS.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public CVSS.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides