Class ProtectedPagesService

java.lang.Object
at.porscheinformatik.tapestry.csrfprotection.internal.ProtectedPagesService

public class ProtectedPagesService extends Object
Service that provides information which pages are protected.
  • Constructor Details

    • ProtectedPagesService

      public ProtectedPagesService(org.apache.tapestry5.services.ComponentClassResolver componentClassResolver, @Value("${tapestry.csrf-protection-mode}") CsrfProtectionMode antiCsrfMode)
      Parameters:
      componentClassResolver - injected
      antiCsrfMode - symbol CsrfConstants.CSRF_PROTECTION_MODE
  • Method Details

    • isPageProtected

      public boolean isPageProtected(org.apache.tapestry5.services.ComponentEventRequestParameters parameters)
      Parameters:
      parameters - the ComponentEventRequestParameters for the request or link
      Returns:
      true if page should be CSRF protected, false otherwise