Class PolicyHandler


  • public class PolicyHandler
    extends Object
    Class that provides the capability of securing input provided as plain text for HTML output.
    • Constructor Detail

      • PolicyHandler

        public PolicyHandler​(InputStream policyStream)
                      throws Exception
        Creates a PolicyHandler from an InputStream.
        Parameters:
        policyStream - the InputStream from which to read this handler's AntiSamyPolicy
        Throws:
        Exception
    • Method Detail

      • getPolicy

        public org.apache.sling.xss.impl.xml.AntiSamyPolicy getPolicy()
      • getFallbackHtmlSanitizer

        public HtmlSanitizer getFallbackHtmlSanitizer()