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 org.owasp.validator.html.AntiSamygetAntiSamy()org.owasp.validator.html.AntiSamygetFallbackAntiSamy()org.owasp.validator.html.PolicygetPolicy()
-
-
-
Constructor Detail
-
PolicyHandler
public PolicyHandler(InputStream policyStream) throws Exception
Creates aPolicyHandlerfrom anInputStream.- Parameters:
policyStream- the InputStream from which to read this handler'sPolicy- Throws:
Exception
-
-