public class ProxyUserFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_PREFIX |
static String |
DO_AS_PARAM |
static String |
GROUPS |
static String |
HOSTS |
| Constructor and Description |
|---|
ProxyUserFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the filter.
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
validate(String proxyUser,
String proxyHost,
String doAsUser)
Verifies a proxyuser.
|
public static final String CONF_PREFIX
public static final String GROUPS
public static final String HOSTS
public static final String DO_AS_PARAM
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void validate(String proxyUser, String proxyHost, String doAsUser) throws IOException, AccessControlException
proxyUser - user name of the proxy user.proxyHost - host the proxy user is making the request from.doAsUser - user the proxy user is impersonating.IOException - thrown if an error during the validation has occurred.AccessControlException - thrown if the user is not allowed to perform the proxyuser request.public void destroy()
destroy in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.