Package org.springframework.security.test.web.servlet.request
@NullMarked
package org.springframework.security.test.web.servlet.request
Spring Security built-in org.springframework.test.web.servlet.RequestBuilder
implementations.
-
ClassesClassDescriptionContains Spring Security related
MockMvcRequestBuilders.Creates a form based login request including any necessaryCsrfToken.Creates a logout request (including any necessaryCsrfToken)ContainsMockMvcRequestPostProcessorimplementations for Spring Security.Populates a validCsrfTokeninto the request.Creates aUsernamePasswordAuthenticationTokenand sets the principal to be aUserand associates it to theMockHttpServletRequest.