Class ContentSecurityPolicyAdminHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class ContentSecurityPolicyAdminHandler extends JcmsFormHandler
  • Field Details

    • cspEnabled

      protected String cspEnabled
    • cspHeader

      protected String cspHeader
    • cspReportOnlyHeader

      protected String cspReportOnlyHeader
    • globalHttpHeaderReportingEndpoints

      protected String globalHttpHeaderReportingEndpoints
    • props

      protected JProperties props
  • Constructor Details

    • ContentSecurityPolicyAdminHandler

      public ContentSecurityPolicyAdminHandler()
  • Method Details

    • addFrontEndDependencies

      public void addFrontEndDependencies()
    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • getCspEnabledSettings

      public BooleanSettings getCspEnabledSettings()
    • getCspHeaderSettings

      public TextAreaSettings getCspHeaderSettings()
    • getCspReportOnlyHeaderSettings

      public TextAreaSettings getCspReportOnlyHeaderSettings()
    • getGlobalHttpHeaderReportingEndpointsSettings

      public TextFieldSettings getGlobalHttpHeaderReportingEndpointsSettings()
    • setOpSave

      public void setOpSave(String str)
    • setCspEnabled

      public void setCspEnabled(String string)
    • getAvailableCspEnabled

      public String getAvailableCspEnabled()
    • setCspHeader

      public void setCspHeader(String string)
    • setCspReportOnlyHeader

      public void setCspReportOnlyHeader(String string)
    • setGlobalHttpHeaderReportingEndpoints

      public void setGlobalHttpHeaderReportingEndpoints(String string)