Package org.springframework.security.web.server.csrf
-
Interface Summary Interface Description CsrfToken ServerCsrfTokenRepository An API to allow changing the method in which the expectedCsrfTokenis associated to theServerWebExchange.ServerCsrfTokenRequestHandler A callback interface that is used to make theCsrfTokencreated by theServerCsrfTokenRepositoryavailable as an exchange attribute.ServerCsrfTokenRequestResolver Implementations of this interface are capable of resolving the token value of aCsrfTokenfrom the providedServerWebExchange. -
Class Summary Class Description CookieServerCsrfTokenRepository AServerCsrfTokenRepositorythat persists the CSRF token in a cookie named "XSRF-TOKEN" and reads from the header "X-XSRF-TOKEN" following the conventions of AngularJS.CsrfServerLogoutHandler CsrfServerLogoutHandleris in charge of removing theCsrfTokenupon logout.CsrfWebFilter Applies CSRF protection using a synchronizer token pattern.DefaultCsrfToken A CSRF token that is used to protect against CSRF attacks.ServerCsrfTokenRequestAttributeHandler An implementation of theServerCsrfTokenRequestHandlerinterface that is capable of making theCsrfTokenavailable as an exchange attribute and resolving the token value as either a form data value or header of the request.WebSessionServerCsrfTokenRepository XorServerCsrfTokenRequestAttributeHandler An implementation of theServerCsrfTokenRequestAttributeHandlerandServerCsrfTokenRequestResolverinterfaces that is capable of masking the value of theCsrfTokenon each request and resolving the raw token value from the masked value as either a form data value or header of the request. -
Exception Summary Exception Description CsrfException Thrown when an invalid or missingCsrfTokenis found in the HttpServletRequest