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
Constructor and Description |
---|
AbstractCasFilter() |
Modifier and Type | Method and Description |
---|---|
protected String |
constructServiceUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
destroy() |
String |
getArtifactParameterName() |
String |
getServiceParameterName() |
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 |
setArtifactParameterName(String artifactParameterName) |
void |
setEncodeServiceUrl(boolean encodeServiceUrl) |
void |
setServerName(String serverName)
Note that trailing slashes should not be used in the serverName.
|
void |
setService(String service) |
void |
setServiceParameterName(String serviceParameterName) |
getPropertyFromInitParams, isIgnoreInitConfiguration, loadFromContext, parseBoolean, setIgnoreInitConfiguration
public static final String CONST_CAS_ASSERTION
public final void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
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 setArtifactParameterName(String artifactParameterName)
public final void setServiceParameterName(String serviceParameterName)
public final void setEncodeServiceUrl(boolean encodeServiceUrl)
public final String getArtifactParameterName()
public final String getServiceParameterName()
protected String retrieveTicketFromRequest(javax.servlet.http.HttpServletRequest request)
request
- the HTTP ServletRequest. CANNOT be NULL.Copyright © 2006–2015 Jasig. All rights reserved.