Class CVSS (2.19.0)

  public 
  
 final 
  
 class 
 CVSS 
  
 extends 
  
 GeneratedMessageV3 
  
 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

Implements

CVSSOrBuilder

Static Fields

ATTACK_COMPLEXITY_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ATTACK_COMPLEXITY_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

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

USER_INTERACTION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 USER_INTERACTION_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 CVSS 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 CVSS 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(CVSS prototype)

  public 
  
 static 
  
 CVSS 
 . 
 Builder 
  
 newBuilder 
 ( 
 CVSS 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 CVSS 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 CVSS 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 CVSS 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<CVSS> 
  
 parser 
 () 
 
Returns
Type
Description
Parser < CVSS >

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getAttackComplexity()

  public 
  
 CVSS 
 . 
 AttackComplexity 
  
 getAttackComplexity 
 () 
 

.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Returns
Type
Description

The attackComplexity.

getAttackComplexityValue()

  public 
  
 int 
  
 getAttackComplexityValue 
 () 
 

.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Returns
Type
Description
int

The enum numeric value on the wire for attackComplexity.

getAttackVector()

  public 
  
 CVSS 
 . 
 AttackVector 
  
 getAttackVector 
 () 
 

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.

.grafeas.v1.CVSS.AttackVector attack_vector = 4;

Returns
Type
Description

The attackVector.

getAttackVectorValue()

  public 
  
 int 
  
 getAttackVectorValue 
 () 
 

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.

.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 
 () 
 

.grafeas.v1.CVSS.Authentication authentication = 6;

Returns
Type
Description

The authentication.

getAuthenticationValue()

  public 
  
 int 
  
 getAuthenticationValue 
 () 
 

.grafeas.v1.CVSS.Authentication authentication = 6;

Returns
Type
Description
int

The enum numeric value on the wire for authentication.

getAvailabilityImpact()

  public 
  
 CVSS 
 . 
 Impact 
  
 getAvailabilityImpact 
 () 
 

.grafeas.v1.CVSS.Impact availability_impact = 12;

Returns
Type
Description

The availabilityImpact.

getAvailabilityImpactValue()

  public 
  
 int 
  
 getAvailabilityImpactValue 
 () 
 

.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

The baseScore.

getConfidentialityImpact()

  public 
  
 CVSS 
 . 
 Impact 
  
 getConfidentialityImpact 
 () 
 

.grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Returns
Type
Description

The confidentialityImpact.

getConfidentialityImpactValue()

  public 
  
 int 
  
 getConfidentialityImpactValue 
 () 
 

.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

getExploitabilityScore()

  public 
  
 float 
  
 getExploitabilityScore 
 () 
 

float exploitability_score = 2;

Returns
Type
Description

The exploitabilityScore.

getImpactScore()

  public 
  
 float 
  
 getImpactScore 
 () 
 

float impact_score = 3;

Returns
Type
Description

The impactScore.

getIntegrityImpact()

  public 
  
 CVSS 
 . 
 Impact 
  
 getIntegrityImpact 
 () 
 

.grafeas.v1.CVSS.Impact integrity_impact = 11;

Returns
Type
Description

The integrityImpact.

getIntegrityImpactValue()

  public 
  
 int 
  
 getIntegrityImpactValue 
 () 
 

.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 
 () 
 
Returns
Type
Description
Parser < CVSS >
Overrides

getPrivilegesRequired()

  public 
  
 CVSS 
 . 
 PrivilegesRequired 
  
 getPrivilegesRequired 
 () 
 

.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Returns
Type
Description

The privilegesRequired.

getPrivilegesRequiredValue()

  public 
  
 int 
  
 getPrivilegesRequiredValue 
 () 
 

.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 
 () 
 

.grafeas.v1.CVSS.Scope scope = 9;

Returns
Type
Description

The scope.

getScopeValue()

  public 
  
 int 
  
 getScopeValue 
 () 
 

.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

getUnknownFields()

  public 
  
 final 
  
 UnknownFieldSet 
  
 getUnknownFields 
 () 
 
Returns
Type
Description
Overrides

getUserInteraction()

  public 
  
 CVSS 
 . 
 UserInteraction 
  
 getUserInteraction 
 () 
 

.grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Returns
Type
Description

The userInteraction.

getUserInteractionValue()

  public 
  
 int 
  
 getUserInteractionValue 
 () 
 

.grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Returns
Type
Description
int

The enum numeric value on the wire for userInteraction.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 CVSS 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 CVSS 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 CVSS 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: