public final class SeverityUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Double |
estimateCvssV2(java.lang.String severity)
Estimates the CVSS V2 Score based on a given severity.
|
static java.lang.Double |
estimatedSortAdjustedCVSSv3(java.lang.String severity)
Creates an estimated sort-adjusted CVSSv3 score for an unscored textual
severity.
|
static java.lang.Double |
sortAdjustedCVSSv3BaseScore(java.lang.Double cvssV3BaseScore)
Compute an adjusted CVSSv3 baseScore that ensures that CRITICAL CVSSv3
scores will win over HIGH CVSSv2 and CRITICAL unscored severities to
allow for a best-effort sorting that enables the report to list a
reliable 'highest severity' in the report.
|
static java.lang.String |
unscoredToSeveritytext(java.lang.String severity)
Converts a textual severity to the text that should be used to signal it
in a report.
|
public static java.lang.Double estimateCvssV2(java.lang.String severity)
severity - the severity text (e.g. "medium")public static java.lang.String unscoredToSeveritytext(java.lang.String severity)
severity - The textual unscored severitypublic static java.lang.Double estimatedSortAdjustedCVSSv3(java.lang.String severity)
severity - The textual severity, may be null#sortAdjustedCVSSv3BaseScore(float)public static java.lang.Double sortAdjustedCVSSv3BaseScore(java.lang.Double cvssV3BaseScore)
cvssV3BaseScore - The cvssV3 baseScore severity of a vulnerabilityestimatedSortAdjustedCVSSv3(String)Copyright© 2012-21 Jeremy Long. All Rights Reserved.