# 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.

Related Packages
Package
Description
org.springframework.security.web
Spring Security's web security module.
Classes
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()`.