CVSSv3

grafeas.v1. CVSSv3

Represents a CVSSv3.

Constructor

new CVSSv3(propertiesopt)

Constructs a new CVSSv3.

Parameters:
Name Type Attributes Description
properties grafeas.v1.ICVSSv3 <optional>

Properties to set

Implements:
  • ICVSSv3

Members

attackComplexity

CVSSv3 attackComplexity.

attackVector

CVSSv3 attackVector.

availabilityImpact

CVSSv3 availabilityImpact.

baseScore

CVSSv3 baseScore.

confidentialityImpact

CVSSv3 confidentialityImpact.

exploitabilityScore

CVSSv3 exploitabilityScore.

impactScore

CVSSv3 impactScore.

integrityImpact

CVSSv3 integrityImpact.

privilegesRequired

CVSSv3 privilegesRequired.

scope

CVSSv3 scope.

userInteraction

CVSSv3 userInteraction.

AttackComplexity

AttackComplexity enum.

Properties:
Name Type Description
ATTACK_COMPLEXITY_UNSPECIFIED number

ATTACK_COMPLEXITY_UNSPECIFIED value

ATTACK_COMPLEXITY_LOW number

ATTACK_COMPLEXITY_LOW value

ATTACK_COMPLEXITY_HIGH number

ATTACK_COMPLEXITY_HIGH value

AttackVector

AttackVector enum.

Properties:
Name Type Description
ATTACK_VECTOR_UNSPECIFIED number

ATTACK_VECTOR_UNSPECIFIED value

ATTACK_VECTOR_NETWORK number

ATTACK_VECTOR_NETWORK value

ATTACK_VECTOR_ADJACENT number

ATTACK_VECTOR_ADJACENT value

ATTACK_VECTOR_LOCAL number

ATTACK_VECTOR_LOCAL value

ATTACK_VECTOR_PHYSICAL number

ATTACK_VECTOR_PHYSICAL value

Impact

Impact enum.

Properties:
Name Type Description
IMPACT_UNSPECIFIED number

IMPACT_UNSPECIFIED value

IMPACT_HIGH number

IMPACT_HIGH value

IMPACT_LOW number

IMPACT_LOW value

IMPACT_NONE number

IMPACT_NONE value

PrivilegesRequired

PrivilegesRequired enum.

Properties:
Name Type Description
PRIVILEGES_REQUIRED_UNSPECIFIED number

PRIVILEGES_REQUIRED_UNSPECIFIED value

PRIVILEGES_REQUIRED_NONE number

PRIVILEGES_REQUIRED_NONE value

PRIVILEGES_REQUIRED_LOW number

PRIVILEGES_REQUIRED_LOW value

PRIVILEGES_REQUIRED_HIGH number

PRIVILEGES_REQUIRED_HIGH value

Scope

Scope enum.

Properties:
Name Type Description
SCOPE_UNSPECIFIED number

SCOPE_UNSPECIFIED value

SCOPE_UNCHANGED number

SCOPE_UNCHANGED value

SCOPE_CHANGED number

SCOPE_CHANGED value

UserInteraction

UserInteraction enum.

Properties:
Name Type Description
USER_INTERACTION_UNSPECIFIED number

USER_INTERACTION_UNSPECIFIED value

USER_INTERACTION_NONE number

USER_INTERACTION_NONE value

USER_INTERACTION_REQUIRED number

USER_INTERACTION_REQUIRED value

Methods

toJSON() → {Object.<string, *>}

Converts this CVSSv3 to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {grafeas.v1.CVSSv3}

Creates a new CVSSv3 instance using the specified properties.

Parameters:
Name Type Attributes Description
properties grafeas.v1.ICVSSv3 <optional>

Properties to set

Returns:
Type Description
grafeas.v1.CVSSv3

CVSSv3 instance

(static) decode(reader, lengthopt) → {grafeas.v1.CVSSv3}

Decodes a CVSSv3 message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
grafeas.v1.CVSSv3

CVSSv3

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {grafeas.v1.CVSSv3}

Decodes a CVSSv3 message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
grafeas.v1.CVSSv3

CVSSv3

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified CVSSv3 message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message grafeas.v1.ICVSSv3

CVSSv3 message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified CVSSv3 message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message grafeas.v1.ICVSSv3

CVSSv3 message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {grafeas.v1.CVSSv3}

Creates a CVSSv3 message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
grafeas.v1.CVSSv3

CVSSv3

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for CVSSv3

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a CVSSv3 message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message grafeas.v1.CVSSv3

CVSSv3

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a CVSSv3 message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not