public abstract class AbstractCasFilter extends AbstractConfigurationFilter
The following filter options can be configured (either at the context-level or filter-level).
serverName
- the name of the CAS client server, in the format: localhost:8080 or localhost:8443 or localhost or https://localhost:8443service
- the completely qualified service url, i.e. https://localhost/cas-client/appPlease note that one of the two above parameters must be set.
Modifier and Type | Field and Description |
---|---|
static String |
CONST_CAS_ASSERTION
Represents the constant for where the assertion will be located in memory.
|
logger
Modifier | Constructor and Description |
---|---|
protected |
AbstractCasFilter(Protocol protocol) |
Modifier and Type | Method and Description |
---|---|
protected String |
constructServiceUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
destroy() |
protected Protocol |
getProtocol() |
void |
init()
Initialization method.
|
void |
init(javax.servlet.FilterConfig filterConfig) |
protected void |
initInternal(javax.servlet.FilterConfig filterConfig)
Controls the ordering of filter initialization and checking by defining a method that runs before the init.
|
protected String |
retrieveTicketFromRequest(javax.servlet.http.HttpServletRequest request)
Template method to allow you to change how you retrieve the ticket.
|
void |
setEncodeServiceUrl(boolean encodeServiceUrl) |
void |
setServerName(String serverName)
Note that trailing slashes should not be used in the serverName.
|
void |
setService(String service) |
getBoolean, getClass, getInt, getLong, getString, isIgnoreInitConfiguration, setIgnoreInitConfiguration
public static final String CONST_CAS_ASSERTION
protected AbstractCasFilter(Protocol protocol)
public final void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
init
in class AbstractConfigurationFilter
javax.servlet.ServletException
protected void initInternal(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
filterConfig
- the original filter configuration.javax.servlet.ServletException
- if there is a problem.public void init()
public void destroy()
protected final String constructServiceUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public final void setServerName(String serverName)
serverName
- the serverName. If this method is called, this should not be null. This AND service should not be both configured.public final void setService(String service)
public final void setEncodeServiceUrl(boolean encodeServiceUrl)
protected Protocol getProtocol()
protected String retrieveTicketFromRequest(javax.servlet.http.HttpServletRequest request)
request
- the HTTP ServletRequest. CANNOT be NULL.Copyright © 2006–2017 Jasig. All rights reserved.