Class DetectConfiguration.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • exclusions

        public DetectConfiguration.Builder exclusions​(List<String> exclusions)
        The list of dependencies to be ignored by the recommendation algorithm.

        The dependency pattern is matched against the ‘group:artifact:version’ or the purl of a dependency. An asterisk (*) at the end in the dependency pattern acts as a wildcard and matches zero or more characters.

        Parameters:
        exclusions - the value to set
        Returns:
        this builder
      • upgradePolicy

        public DetectConfiguration.Builder upgradePolicy​(DetectConfiguration.UpgradePolicy upgradePolicy)
        The upgrade policy for recommendations.

        The Nearest upgrade policy upgrades a dependency to the oldest version that meets both of the following criteria: it is newer than the current version and it is not affected by a vulnerability.

        Parameters:
        upgradePolicy - the value to set
        Returns:
        this builder
      • maxPermissibleCvssV2Score

        public DetectConfiguration.Builder maxPermissibleCvssV2Score​(Float maxPermissibleCvssV2Score)
        The maximum Common Vulnerability Scoring System Version 2 (CVSS V2) score.

        An artifact with a CVSS V2 score below this value is not considered for patching.

        Parameters:
        maxPermissibleCvssV2Score - the value to set
        Returns:
        this builder
      • maxPermissibleCvssV3Score

        public DetectConfiguration.Builder maxPermissibleCvssV3Score​(Float maxPermissibleCvssV3Score)
        The maximum Common Vulnerability Scoring System Version 3 (CVSS V3) score.

        An artifact with a CVSS V3 score below this value is not considered for patching.

        Parameters:
        maxPermissibleCvssV3Score - the value to set
        Returns:
        this builder
      • maxPermissibleSeverity

        public DetectConfiguration.Builder maxPermissibleSeverity​(ConfigSeverity maxPermissibleSeverity)
        The maximum ADM Severity.

        An artifact with an ADM Severity below this value is not considered for patching.

        Parameters:
        maxPermissibleSeverity - the value to set
        Returns:
        this builder