public class AuthenticationFilter extends AbstractCasFilter
This filter allows you to specify the following parameters (at either the context-level or the filter-level):
casServerLoginUrl - the url to log into CAS, i.e. https://cas.rutgers.edu/loginrenew - true/false on whether to use renew or not.gateway - true/false on whether to use gateway or not.method - the method used by the CAS server to send the user back to the application (redirect or post).Please see AbstractCasFilter for additional properties.
CONST_CAS_ASSERTIONlogger| Modifier | Constructor and Description |
|---|---|
|
AuthenticationFilter() |
protected |
AuthenticationFilter(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
void |
init()
Initialization method.
|
protected void |
initInternal(javax.servlet.FilterConfig filterConfig)
Controls the ordering of filter initialization and checking by defining a method that runs before the init.
|
void |
setCasServerLoginUrl(String casServerLoginUrl) |
void |
setCasServerUrlPrefix(String casServerUrlPrefix) |
void |
setGateway(boolean gateway) |
void |
setGatewayStorage(GatewayResolver gatewayStorage) |
void |
setIgnoreUrlPatternMatcherStrategyClass(UrlPatternMatcherStrategy ignoreUrlPatternMatcherStrategyClass) |
void |
setMethod(String method) |
void |
setRenew(boolean renew) |
constructServiceUrl, destroy, getProtocol, init, retrieveTicketFromRequest, setEncodeServiceUrl, setServerName, setServicegetBoolean, getClass, getInt, getLong, getString, isIgnoreInitConfiguration, setIgnoreInitConfigurationpublic AuthenticationFilter()
protected AuthenticationFilter(Protocol protocol)
protected void initInternal(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
AbstractCasFilterinitInternal in class AbstractCasFilterfilterConfig - the original filter configuration.javax.servlet.ServletException - if there is a problem.public void init()
AbstractCasFilterinit in class AbstractCasFilterpublic final void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic final void setRenew(boolean renew)
public final void setGateway(boolean gateway)
public void setMethod(String method)
public final void setCasServerUrlPrefix(String casServerUrlPrefix)
public final void setCasServerLoginUrl(String casServerLoginUrl)
public final void setGatewayStorage(GatewayResolver gatewayStorage)
public final void setIgnoreUrlPatternMatcherStrategyClass(UrlPatternMatcherStrategy ignoreUrlPatternMatcherStrategyClass)
Copyright © 2006–2021 Apereo. All rights reserved.