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.ARequestPostProcessorfor establishing a JWT-authenticated user for use in tests.ARequestPostProcessorfor establishing anOAuth2AuthorizedClientfor use in tests.ARequestPostProcessorfor establishing an OAuth 2.0 login-authenticated user for use in tests.ARequestPostProcessorfor establishing an OIDC-authenticated user for use in tests.ARequestPostProcessorfor establishing an opaque-token-authenticated user for use in tests.Creates aUsernamePasswordAuthenticationTokenand sets the principal to be aUserand associates it to theMockHttpServletRequest.