ch.epfl.tequila.client.system
Class TequilaFilter
java.lang.Object
ch.epfl.tequila.client.system.TequilaFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class TequilaFilter
- extends java.lang.Object
- implements javax.servlet.Filter
Filter thats checks if the user has been authenticated. If it's not the case, it redirects him/her to tequila.
Field Summary |
static java.lang.String |
TEQUILA_KEY
The name of the session attribute holding the tequila key. |
static java.lang.String |
TEQUILA_PRINCIPAL
The name of the session attribute holding the TequilaPrincipal after successful authentification. |
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
|
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEQUILA_KEY
public static final java.lang.String TEQUILA_KEY
- The name of the session attribute holding the tequila key.
- See Also:
- Constant Field Values
TEQUILA_PRINCIPAL
public static final java.lang.String TEQUILA_PRINCIPAL
- The name of the session attribute holding the TequilaPrincipal after successful authentification.
- See Also:
- Constant Field Values
TequilaFilter
public TequilaFilter()
init
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter