public class SecurityContextHolderAwareRequestFilter
extends org.springframework.web.filter.GenericFilterBean
Filter which populates the ServletRequest with a request wrapper
which implements the servlet API security methods.
The wrapper class used is SecurityContextHolderAwareRequestWrapper.
| Constructor and Description |
|---|
SecurityContextHolderAwareRequestFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
void |
setRolePrefix(java.lang.String rolePrefix) |
public SecurityContextHolderAwareRequestFilter()
public void setRolePrefix(java.lang.String rolePrefix)
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletException