public class SimpleCASAuthorizationFilter extends Object implements javax.servlet.Filter
Filter protects resources such that only specified usernames, as authenticated with CAS, can access.
edu.yale.its.tp.cas.client.filter.user
must be set before this filter in the filter chain.
This filter takes the init-param edu.yale.its.tp.cas.client.filter.authorizedUsers
, a
whitespace-delimited list of users authorized to pass through this filter.
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORIZED_USER_STRING |
static String |
FILTER_NAME |
Constructor and Description |
---|
SimpleCASAuthorizationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain fc) |
void |
init(javax.servlet.FilterConfig config) |
public static final String AUTHORIZED_USER_STRING
public static final String FILTER_NAME
public SimpleCASAuthorizationFilter()
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain fc) throws javax.servlet.ServletException, IOException
doFilter
in interface javax.servlet.Filter
javax.servlet.ServletException
IOException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2015 Nuxeo SA. All rights reserved.