Grafeas V1 Client - Class CVSS (0.9.0)

Reference documentation and code samples for the Grafeas V1 Client class CVSS.

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.

Generated from protobuf message grafeas.v1.CVSS

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ base_score float

The base score is a function of the base metric scores.

↳ exploitability_score float
↳ impact_score float
↳ attack_vector int

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

↳ attack_complexity int
↳ authentication int
↳ privileges_required int
↳ user_interaction int
↳ scope int
↳ confidentiality_impact int
↳ integrity_impact int
↳ availability_impact int

getBaseScore

The base score is a function of the base metric scores.

Returns
TypeDescription
float

setBaseScore

The base score is a function of the base metric scores.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getExploitabilityScore

Generated from protobuf field float exploitability_score = 2;

Returns
TypeDescription
float

setExploitabilityScore

Generated from protobuf field float exploitability_score = 2;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getImpactScore

Generated from protobuf field float impact_score = 3;

Returns
TypeDescription
float

setImpactScore

Generated from protobuf field float impact_score = 3;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getAttackVector

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

Returns
TypeDescription
int

setAttackVector

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAttackComplexity

Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Returns
TypeDescription
int

setAttackComplexity

Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAuthentication

Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6;

Returns
TypeDescription
int

setAuthentication

Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPrivilegesRequired

Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Returns
TypeDescription
int

setPrivilegesRequired

Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUserInteraction

Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Returns
TypeDescription
int

setUserInteraction

Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getScope

Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9;

Returns
TypeDescription
int

setScope

Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getConfidentialityImpact

Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Returns
TypeDescription
int

setConfidentialityImpact

Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getIntegrityImpact

Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11;

Returns
TypeDescription
int

setIntegrityImpact

Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAvailabilityImpact

Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12;

Returns
TypeDescription
int

setAvailabilityImpact

Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12;

Parameter
NameDescription
var int
Returns
TypeDescription
$this