Package org.springframework.security.web.servletapi
Populates a Servlet request with a new Spring Security compliant
HttpServletRequestWrapper
.
To use, simply add the SecurityContextHolderAwareRequestFilter
to the Spring Security filter chain.
-
Class Summary Class Description SecurityContextHolderAwareRequestFilter AFilter
which populates theServletRequest
with a request wrapper which implements the servlet API security methods.SecurityContextHolderAwareRequestWrapper A Spring Security-awareHttpServletRequestWrapper
, which uses theSecurityContext
-definedAuthentication
object to implement the servlet API security methods:SecurityContextHolderAwareRequestWrapper.getUserPrincipal()
SecurityContextHolderAwareRequestWrapper.isUserInRole(String)
HttpServletRequestWrapper.getRemoteUser()
.