com.vaadin.flow.internal.springcsrf.

Class SpringCsrfTokenUtil

java.lang.Object
com.vaadin.flow.internal.springcsrf.SpringCsrfTokenUtil
public class SpringCsrfTokenUtil extends Object

A util class for helping dealing with Spring CSRF token.

  • Method Details

    • getSpringCsrfToken

      public static Optional<SpringCsrfToken> getSpringCsrfToken(VaadinRequest request)
    • getSpringCsrfToken

      public static Optional<SpringCsrfToken> getSpringCsrfToken(jakarta.servlet.ServletRequest request)
    • addTokenAsMetaTagsToHeadIfPresentInRequest

      public static void addTokenAsMetaTagsToHeadIfPresentInRequest(org.jsoup.nodes.Element head, VaadinRequest request)