Matcher

class Matcher(val documents: List<<Error class: unknown class>>, val threshold: Float = 0.5f)

Matcher for matching an SBOM database with provided CSAF documents.

Constructors

Link copied to clipboard
constructor(documents: List<<Error class: unknown class>>, threshold: Float = 0.5f)

Properties

Link copied to clipboard
val documents: List<<Error class: unknown class>>

The CSAF security advisories used by this matcher.

Link copied to clipboard
var products: <Error class: unknown class>
Link copied to clipboard
val threshold: Float = 0.5f

The default threshold required for a match to be included.

Functions

Link copied to clipboard
fun match(sbom: SBOM, threshold: Float = this.threshold): Set<Match>

Matches the provided SBOM with the CSAF advisories and determines whether they meet specific criteria.

Link copied to clipboard
fun matchComponent(component: SBOMComponent, threshold: Float = this.threshold): Set<Match>

Matches the provided SBOM component with the CSAF advisories and determines whether they meet specific criteria.

Link copied to clipboard
fun matchDatabase(database: SBOMDatabase, threshold: Float = this.threshold): Set<Match>

Matches the provided SBOM database with the CSAF advisories and determines whether they meet specific criteria.