Class CSRFFilter
java.lang.Object
dev.voidframework.web.http.filter.csrf.CSRFFilter
- All Implemented Interfaces:
Filter
This filter takes care of generating and checking a CSRF
token if the request matches the chosen criteria.
- Since:
- 1.1.0
-
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- Since:
- 1.1.0
-
-
Method Details