Class SpringCsrfTokenUtil
java.lang.Object
com.vaadin.flow.internal.springcsrf.SpringCsrfTokenUtil
A util class for helping dealing with Spring CSRF token.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTokenAsMetaTagsToHeadIfPresentInRequest
(org.jsoup.nodes.Element head, VaadinRequest request) static Optional<SpringCsrfToken>
getSpringCsrfToken
(VaadinRequest request) static Optional<SpringCsrfToken>
getSpringCsrfToken
(jakarta.servlet.ServletRequest request)
-
Method Details
-
getSpringCsrfToken
-
getSpringCsrfToken
-
addTokenAsMetaTagsToHeadIfPresentInRequest
public static void addTokenAsMetaTagsToHeadIfPresentInRequest(org.jsoup.nodes.Element head, VaadinRequest request)
-