Package org.springframework.security.web.csrf
-
Interface Summary Interface Description CsrfToken Provides the information about an expected CSRF token.CsrfTokenRepository An API to allow changing the method in which the expectedCsrfTokenis associated to theHttpServletRequest. -
Class Summary Class Description CookieCsrfTokenRepository ACsrfTokenRepositorythat persists the CSRF token in a cookie named "XSRF-TOKEN" and reads from the header "X-XSRF-TOKEN" following the conventions of AngularJS.CsrfAuthenticationStrategy CsrfAuthenticationStrategyis in charge of removing theCsrfTokenupon authenticating.CsrfFilter Applies CSRF protection using a synchronizer token pattern.CsrfLogoutHandler CsrfLogoutHandleris in charge of removing theCsrfTokenupon logout.DefaultCsrfToken A CSRF token that is used to protect against CSRF attacks.HttpSessionCsrfTokenRepository LazyCsrfTokenRepository ACsrfTokenRepositorythat delays saving newCsrfTokenuntil the attributes of theCsrfTokenthat were generated are accessed. -
Exception Summary Exception Description CsrfException Thrown when an invalid or missingCsrfTokenis found in the HttpServletRequestInvalidCsrfTokenException Thrown when an expectedCsrfTokenexists, but it does not match the value present on theHttpServletRequestMissingCsrfTokenException Thrown when no expectedCsrfTokenis found but is required.