Package org.apache.sling.xss.impl
Class PolicyHandler
- java.lang.Object
-
- org.apache.sling.xss.impl.PolicyHandler
-
public class PolicyHandler extends Object
Class that provides the capability of securing input provided as plain text for HTML output.
-
-
Constructor Summary
Constructors Constructor Description PolicyHandler(InputStream policyStream)Creates aPolicyHandlerfrom anInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlSanitizergetFallbackHtmlSanitizer()HtmlSanitizergetHtmlSanitizer()org.apache.sling.xss.impl.xml.AntiSamyPolicygetPolicy()
-
-
-
Constructor Detail
-
PolicyHandler
public PolicyHandler(InputStream policyStream) throws Exception
Creates aPolicyHandlerfrom anInputStream.- Parameters:
policyStream- the InputStream from which to read this handler'sAntiSamyPolicy- Throws:
Exception
-
-
Method Detail
-
getPolicy
public org.apache.sling.xss.impl.xml.AntiSamyPolicy getPolicy()
-
getHtmlSanitizer
public HtmlSanitizer getHtmlSanitizer()
-
getFallbackHtmlSanitizer
public HtmlSanitizer getFallbackHtmlSanitizer()
-
-