Class Vulnerabilities


  • @Deprecated(since="2.14.0",
                forRemoval=true)
    public final class Vulnerabilities
    extends java.lang.Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    (2.14.0) The vulnerabilities were moved to Common Library add-on.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Vulnerabilities.Provider
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.util.List<Vulnerability> getAllVulnerabilities()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets an unmodifiable List containing all the Vulnerability for the current active Locale.
      static java.lang.String getDescription​(Vulnerability vuln)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String getReference​(Vulnerability vuln)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String getSolution​(Vulnerability vuln)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static Vulnerability getVulnerability​(java.lang.String id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the Vulnerability for the given WASC ID, or null if not available.
      static void setProvider​(Vulnerabilities.Provider provider)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setProvider

        public static void setProvider​(Vulnerabilities.Provider provider)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getAllVulnerabilities

        public static java.util.List<Vulnerability> getAllVulnerabilities()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets an unmodifiable List containing all the Vulnerability for the current active Locale. They are loaded from a XML file.

        An empty List is returned if any error occurred while opening/parsing the XML file. The returned List is guaranteed to be non null.

        Note: Trying to modify the list will result in an UnsupportedOperationException.

        Returns:
        an unmodifiable List containing all the Vulnerability loaded, never null.
      • getVulnerability

        public static Vulnerability getVulnerability​(java.lang.String id)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the Vulnerability for the given WASC ID, or null if not available.

        The WASC ID is in the form:

        "wasc_" + #ID

        For example, "wasc_1", "wasc_2" or "wasc_48".

        Parameters:
        id - the WASC ID of the vulnerability, e.g. wasc_1
        Returns:
        the Vulnerability for the given WASC ID, or null if not available
      • getDescription

        public static java.lang.String getDescription​(Vulnerability vuln)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getSolution

        public static java.lang.String getSolution​(Vulnerability vuln)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getReference

        public static java.lang.String getReference​(Vulnerability vuln)
        Deprecated, for removal: This API element is subject to removal in a future version.