Class CSRFFilter

java.lang.Object
dev.voidframework.web.csrf.CSRFFilter
All Implemented Interfaces:
Filter

public class CSRFFilter extends Object implements Filter
This filter takes care of generating and checking a CSRF token if the request matches the chosen criteria.
  • Field Details

  • Constructor Details

    • CSRFFilter

      @Inject public CSRFFilter(com.typesafe.config.Config configuration)
      Build a new instance.
      Parameters:
      configuration - The application configuration
  • Method Details

    • apply

      public Result apply(Context context, FilterChain filterChain)
      Description copied from interface: Filter
      Applies the filter.
      Specified by:
      apply in interface Filter
      Parameters:
      context - The current context
      filterChain - The owner filter chain
      Returns:
      A result