Class 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 Detail

      • context

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

      • CsrfTokenParameterProvider

        public CsrfTokenParameterProvider​(CsrfReactiveConfig config)
    • Method Detail

      • 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().