HttpServletRequestWrapper
.See: Description
Class | Description |
---|---|
SecurityContextHolderAwareRequestFilter |
A
Filter which populates the ServletRequest with a request
wrapper which implements the servlet API security methods. |
SecurityContextHolderAwareRequestWrapper |
A Spring Security-aware
HttpServletRequestWrapper , which uses the
SecurityContext -defined Authentication object to implement
the servlet API security methods:
SecurityContextHolderAwareRequestWrapper.getUserPrincipal()
SecurityContextHolderAwareRequestWrapper.isUserInRole(String)
HttpServletRequestWrapper.getRemoteUser() .
|
HttpServletRequestWrapper
.
To use, simply add the SecurityContextHolderAwareRequestFilter
to the Spring Security filter chain.