Package io.quarkus.csrf.reactive.runtime
Class CsrfTokenParameterProvider
- java.lang.Object
-
- io.quarkus.csrf.reactive.runtime.CsrfTokenParameterProvider
-
@ApplicationScoped @Named("csrf") public class CsrfTokenParameterProvider extends ObjectCSRF token form parameter provider which supports the injection of the CSRF token in Qute templates.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) io.vertx.ext.web.RoutingContextcontext
-
Constructor Summary
Constructors Constructor Description CsrfTokenParameterProvider(CsrfReactiveConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParameterName()Gets the name of the form parameter that is to contain the value returned bygetToken().StringgetToken()Gets the CSRF token value.
-
-
-
Constructor Detail
-
CsrfTokenParameterProvider
public CsrfTokenParameterProvider(CsrfReactiveConfig config)
-
-
Method Detail
-
getToken
public String getToken()
Gets the CSRF token value.- Throws:
IllegalStateException- if theRoutingContextdoes not contain a CSRF token value.
-
getParameterName
public String getParameterName()
Gets the name of the form parameter that is to contain the value returned bygetToken().
-
-