Interface SanitizerCustomPolicy

All Known Implementing Classes:
CustomPermissivePolicy, CustomSafePolicy

public interface SanitizerCustomPolicy
This interface is used to build a custom sanitizer policy which then can be used instead of the default permissive policy. The custom policy will the be used in UtilCodec.HtmlEncoder.sanitize(String, String)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.owasp.html.PolicyFactory
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.owasp.html.PolicyFactory
    Used for getting the policy from the custom class which implements this interface
  • Field Details

    • POLICY_DEFINITION

      static final org.owasp.html.PolicyFactory POLICY_DEFINITION
  • Method Details

    • getSanitizerPolicy

      org.owasp.html.PolicyFactory getSanitizerPolicy()
      Used for getting the policy from the custom class which implements this interface
      Returns:
      the policy specified in the class will be returned