Class TransformerProvider

java.lang.Object
overit.geocall.xml.TransformerProvider

public class TransformerProvider extends Object
This class is an implementation of easy security settings XML transformers.
Inspired by http://openjdk.java.net/jeps/185
  • Field Details

  • Constructor Details

    • TransformerProvider

      public TransformerProvider()
      Tool for building xml transformer. By default it configures all the factories with FEATURE_SECURE_POLICY
      See https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet
    • TransformerProvider

      public TransformerProvider(boolean secureProcessing)
      Tool for parsing xml securely. It configures all the factories with FEATURE_SECURE_POLICY dependent on the parameter secureProcessing
      See https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet
      Parameters:
      secureProcessing - true for configuring the factories with the feature FEATURE_SECURE_POLICY
  • Method Details