Class ExtensionSecurityAnalysisResult


  • @Unstable
    public class ExtensionSecurityAnalysisResult
    extends Object
    Store the known security vulnerabilities for a given extension.
    Since:
    15.5RC1
    Version:
    $Id: 63507c26b649bc1680a923082fb3807512776fc0 $
    • Constructor Detail

      • ExtensionSecurityAnalysisResult

        public ExtensionSecurityAnalysisResult()
    • Method Detail

      • getSecurityVulnerabilities

        public List<SecurityVulnerabilityDescriptor> getSecurityVulnerabilities()
        Returns:
        the security vulnerabilities associated with the analyzed extension
      • getAdvice

        public String getAdvice()
        Returns:
        the translation key of the advice applicable on the security analysis (e.g., how to upgrade the extension to fix the identified security vulnerabilities)
      • setAdvice

        public ExtensionSecurityAnalysisResult setAdvice​(String advice)
        Parameters:
        advice - the translation key of the advice applicable on the security analysis (e.g., how to upgrade the extension to fix the identified security vulnerabilities)
        Returns:
        the current object
      • getMaxCVSS

        public Double getMaxCVSS()
        Returns:
        the highest CVSS of this security vulnerabilities in this analysis
      • isCoreExtension

        public boolean isCoreExtension()
        Returns:
        true when the extension is core, false otherwise
      • setCoreExtension

        public ExtensionSecurityAnalysisResult setCoreExtension​(boolean coreExtension)
        Sets the flag indicating whether the extension is a core extension.
        Parameters:
        coreExtension - true to indicate that the extension is a core extension, false otherwise
        Returns:
        the current object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object