Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cvss3VectorParser

Implements a service offering CVSS v3 vector parsing.

remarks

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

Hierarchy

  • Cvss3VectorParser

Implements

  • CvssVectorParser

Index

Constructors

constructor

Methods

generateScoringEngine

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

    Parameters

    • vector: string

      the vector to load in to the scoring engine

    Returns Cvss3ScoringEngine

    the loaded scoring engine

parse

Static Private parseAttackComplexity

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

    Parameters

    • attackComplexityString: string

      the string to convert

    Returns AttackComplexity

    the converted enum value

Static Private parseAttackVector

  • parseAttackVector(attackVectorString: string): AttackVector
  • Converts an attack vector, represented as a string, into an enum value.

    Parameters

    • attackVectorString: string

      the string to convert

    Returns AttackVector

    the converted enum value

Static Private parseExploitCodeMaturity

  • Converts an exploit code maturity level, represented as a string, into an enum value.

    Parameters

    • exploitCodeMaturityString: string

      the string to convert

    Returns ExploitCodeMaturity

    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 parseModifiedAttackComplexity

  • parseModifiedAttackComplexity(modifiedAttackComplexityString: string): AttackComplexity
  • Converts a modified attack complexity, represented as a string, into an enum value.

    Parameters

    • modifiedAttackComplexityString: string

    Returns AttackComplexity

    the converted enum value

Static Private parseModifiedAttackVector

  • parseModifiedAttackVector(modifiedAttackVectorString: string): AttackVector
  • Converts a modified attack vector, represented as a string, into an enum value.

    Parameters

    • modifiedAttackVectorString: string

      the string to convert

    Returns AttackVector

    the converted enum value

Static Private parseModifiedImpact

  • parseModifiedImpact(modifiedImpactString: string): Impact
  • Converts a modified impact magnitude, represented as a string, into an enum value.

    Parameters

    • modifiedImpactString: string

    Returns Impact

    the converted enum value

Static Private parseModifiedPrivilegesRequired

  • parseModifiedPrivilegesRequired(modifiedPrivilegesRequiredString: string): PrivilegesRequired
  • Converts a modified privileges requirement, represented as a string, into an enum value.

    Parameters

    • modifiedPrivilegesRequiredString: string

      the string to convert

    Returns PrivilegesRequired

    the converted enum value

Static Private parseModifiedScope

  • parseModifiedScope(modifiedScopeString: string): Scope
  • Converts a modified scope, represented as a string, into an enum value.

    Parameters

    • modifiedScopeString: string

    Returns Scope

    the converted enum value

Static Private parseModifiedUserInteraction

  • parseModifiedUserInteraction(modifiedUserInteractionString: string): UserInteraction
  • Converts a modified user interaction level, represented as a string, into an enum value.

    Parameters

    • modifiedUserInteractionString: string

      the string to convert

    Returns UserInteraction

    the converted enum value

Static Private parsePrivilegesRequired

  • Converts a privileges requirement, represented as a string, into an enum value.

    Parameters

    • privilegesRequiredString: string

      the string to convert

    Returns PrivilegesRequired

    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 parseScope

  • parseScope(scopeString: string): Scope
  • Converts a scope, represented as a string, into an enum value.

    Parameters

    • scopeString: string

      the string to convert

    Returns Scope

    the converted enum value

Static Private parseSecurityRequirement

  • Converts a security requirement, represented as a string, into an enum value.

    Parameters

    • securityRequirementString: string

      the string to convert

    Returns SecurityRequirement

    the converted enum value

Static Private parseUserInteraction

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

    Parameters

    • userInteractionString: string

      the string to convert

    Returns UserInteraction

    the converted enum value

Generated using TypeDoc