Package io.quarkus.csrf.reactive.runtime
Class CsrfTokenParameterProvider
java.lang.Object
io.quarkus.csrf.reactive.runtime.CsrfTokenParameterProvider
CSRF token form parameter provider which supports the injection of the CSRF token in Qute templates.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the CSRF cookie name.Gets the CSRF header name.Gets the name of the form parameter that is to contain the value returned bygetToken()
.getToken()
Gets the CSRF token value.
-
Field Details
-
context
@Inject io.vertx.ext.web.RoutingContext context
-
-
Constructor Details
-
CsrfTokenParameterProvider
-
-
Method Details
-
getToken
Gets the CSRF token value.- Throws:
IllegalStateException
- if theRoutingContext
does not contain a CSRF token value.
-
getParameterName
Gets the name of the form parameter that is to contain the value returned bygetToken()
. -
getCookieName
Gets the CSRF cookie name. -
getHeaderName
Gets the CSRF header name.
-