Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cvss2VectorParser

Implements a service offering CVSS v2 vector parsing.

remarks

Consumers should be aware that parse will raise an exception if an invalid CVSS v2 vector string is passed. This includes strings containing incorrect keys/values and those that are missing required entries.

Hierarchy

  • Cvss2VectorParser

Implements

  • CvssVectorParser

Index

Constructors

constructor

Methods

generateScoringEngine

  • Generates and returns a version-specific (CVSS v2) scoring engine loaded with a vector.

    Parameters

    • vector: string

      the vector to load in to the scoring engine

    Returns Cvss2ScoringEngine

    the loaded scoring engine

parse

Static Private parseAccessComplexity

  • Converts an access complexity, represented as a string, into an enum value.

    Parameters

    • accessComplexityString: string

      the string to convert

    Returns AccessComplexity

    the converted enum value

Static Private parseAccessVector

  • parseAccessVector(accessVectorString: string): AccessVector
  • Converts an access vector, represented as a string, into an enum value.

    Parameters

    • accessVectorString: string

      the string to convert

    Returns AccessVector

    the converted enum value

Static Private parseAuthentication

  • Converts an authentication level, represented as a string, into an enum value.

    Parameters

    • authenticationString: string

      the string to convert

    Returns Authentication

    the converted enum value

Static Private parseCollateralDamagePotential

  • Converts a collateral damage potential, represented as a string, into an enum value.

    Parameters

    • collateralDamagePotentialString: string

      the string to convert

    Returns CollateralDamagePotential

    the converted enum value

Static Private parseExploitability

  • Converts an impact magnitude, represented as a string, into an enum value.

    Parameters

    • exploitabilityString: string

    Returns Exploitability

    the converted enum value

Static Private parseImpact

  • parseImpact(impactString: string): Impact
  • Converts an impact magnitude, represented as a string, into an enum value.

    Parameters

    • impactString: string

      the string to convert

    Returns Impact

    the converted enum value

Static Private parseImpactSubscore

  • Converts an impact subscore value, represented as a string, into an enum value.

    Parameters

    • impactSubscoreString: string

      the string to convert

    Returns ImpactSubscore

    the converted enum value

Static Private parseRemediationLevel

  • Converts a remediation level, represented as a string, into an enum value.

    Parameters

    • remediationLevelString: string

      the string to convert

    Returns RemediationLevel

    the converted enum value

Static Private parseReportConfidence

  • Converts a report confidence level, represented as a string, into an enum value.

    Parameters

    • reportConfidenceString: string

      the string to convert

    Returns ReportConfidence

    the converted enum value

Static Private parseTargetDistribution

  • Converts a target distribution, represented as a string, into an enum value.

    Parameters

    • targetDistributionString: string

      the string to convert

    Returns TargetDistribution

    the converted enum value

Generated using TypeDoc