Package org.springframework.security.web.servletapi
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.
-
ClassDescriptionA
Filter
which populates theServletRequest
with a request wrapper which implements the servlet API security methods.A Spring Security-awareHttpServletRequestWrapper
, which uses theSecurityContext
-definedAuthentication
object to implement the servlet API security methods:SecurityContextHolderAwareRequestWrapper.getUserPrincipal()
SecurityContextHolderAwareRequestWrapper.isUserInRole(String)
HttpServletRequestWrapper.getRemoteUser()
.