CVSS

grafeas.v1. CVSS

Represents a CVSS.

Constructor

new CVSS(propertiesopt)

Constructs a new CVSS.

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

Properties to set

Implements:
  • ICVSS

Members

attackComplexity

CVSS attackComplexity.

attackVector

CVSS attackVector.

authentication

CVSS authentication.

availabilityImpact

CVSS availabilityImpact.

baseScore

CVSS baseScore.

confidentialityImpact

CVSS confidentialityImpact.

exploitabilityScore

CVSS exploitabilityScore.

impactScore

CVSS impactScore.

integrityImpact

CVSS integrityImpact.

privilegesRequired

CVSS privilegesRequired.

scope

CVSS scope.

userInteraction

CVSS 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

ATTACK_COMPLEXITY_MEDIUM number

ATTACK_COMPLEXITY_MEDIUM 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

Authentication

Authentication enum.

Properties:
Name Type Description
AUTHENTICATION_UNSPECIFIED number

AUTHENTICATION_UNSPECIFIED value

AUTHENTICATION_MULTIPLE number

AUTHENTICATION_MULTIPLE value

AUTHENTICATION_SINGLE number

AUTHENTICATION_SINGLE value

AUTHENTICATION_NONE number

AUTHENTICATION_NONE 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

IMPACT_PARTIAL number

IMPACT_PARTIAL value

IMPACT_COMPLETE number

IMPACT_COMPLETE 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 CVSS to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

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

Creates a new CVSS instance using the specified properties.

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

Properties to set

Returns:
Type Description
grafeas.v1.CVSS

CVSS instance

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

Decodes a CVSS 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.CVSS

CVSS

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.CVSS}

Decodes a CVSS 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.CVSS

CVSS

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 CVSS message. Does not implicitly verify messages.

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

CVSS 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 CVSS message, length delimited. Does not implicitly verify messages.

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

CVSS 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.CVSS}

Creates a CVSS 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.CVSS

CVSS

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for CVSS

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 CVSS message. Also converts values to other types if specified.

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

CVSS

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

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

Verifies a CVSS 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