Class CsrfTokenParameterProvider

java.lang.Object
io.quarkus.csrf.reactive.runtime.CsrfTokenParameterProvider

@ApplicationScoped @Named("csrf") public class CsrfTokenParameterProvider extends Object
CSRF token form parameter provider which supports the injection of the CSRF token in Qute templates.
  • Field Details

    • context

      @Inject io.vertx.ext.web.RoutingContext context
  • Constructor Details

    • CsrfTokenParameterProvider

      public CsrfTokenParameterProvider(RestCsrfConfig config)
  • Method Details

    • getToken

      public String getToken()
      Gets the CSRF token value.
      Throws:
      IllegalStateException - if the RoutingContext does not contain a CSRF token value.
    • getParameterName

      public String getParameterName()
      Gets the name of the form parameter that is to contain the value returned by getToken().
    • getCookieName

      public String getCookieName()
      Gets the CSRF cookie name.
    • getHeaderName

      public String getHeaderName()
      Gets the CSRF header name.