Class DocumentBuilderFactoryUtil

java.lang.Object
org.wildfly.common.xml.DocumentBuilderFactoryUtil

public final class DocumentBuilderFactoryUtil extends Object
Factory provides DocumentBuilderFactory with secure defaults set. Properties not supported generate a warning, but the factory process creation will continue and return a result. Settings based on recommendations of Sonarcloud RSPEC-2755 and OWASP XML External Entity Prevention Cheatsheet.

Since:
1.6.0.Final
Author:
Boris Unckel
  • Method Details

    • create

      @NotNull public static DocumentBuilderFactory create()
      Factory generated with secure defaults.
      Returns:
      an instance of the DocumentBuilderFactory.