Package dev.voidframework.web.csrf
Class CSRFFilter
java.lang.Object
dev.voidframework.web.csrf.CSRFFilter
- All Implemented Interfaces:
Filter
This filter takes care of generating and checking a CSRF
token if the request matches the chosen criteria.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypedMap.Key<Boolean>static final TypedMap.Key<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Context context, FilterChain filterChain) Applies the filter.
-
Field Details
-
CSRF_TOKEN_KEY
-
BYPASS_CSRF_VERIFICATION
-
-
Constructor Details
-
CSRFFilter
@Inject public CSRFFilter(com.typesafe.config.Config configuration) Build a new instance.- Parameters:
configuration- The application configuration
-
-
Method Details