Class SimpleCASAuthorizationFilter
- java.lang.Object
-
- edu.yale.its.tp.cas.client.filter.SimpleCASAuthorizationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
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.- Author:
- Andrew Petro
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHORIZED_USER_STRING
static String
FILTER_NAME
-
Constructor Summary
Constructors Constructor Description SimpleCASAuthorizationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain fc)
void
init(javax.servlet.FilterConfig config)
-
-
-
Field Detail
-
AUTHORIZED_USER_STRING
public static final String AUTHORIZED_USER_STRING
- See Also:
- Constant Field Values
-
FILTER_NAME
public static final String FILTER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleCASAuthorizationFilter
public SimpleCASAuthorizationFilter()
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain fc) throws javax.servlet.ServletException, IOException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
IOException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-