Class CasSingleSignOutFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.jenkinsci.plugins.cas.spring.security.CasSingleSignOutFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.EnvironmentAware
,org.springframework.core.env.EnvironmentCapable
,org.springframework.web.context.ServletContextAware
public class CasSingleSignOutFilter
extends org.springframework.web.filter.GenericFilterBean
CAS Single Sign-Out filter with support for a URL path matching.
- Author:
- Fabien Crespel
-
Field Summary
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
doFilter
(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain) org.apereo.cas.client.session.SingleSignOutHandler
boolean
protected boolean
requiresProcessing
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
setEnabled
(boolean enabled) void
setFilterProcessesUrl
(String filterProcessesUrl) void
setSingleSignOutHandler
(org.apereo.cas.client.session.SingleSignOutHandler singleSignOutHandler) Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
CasSingleSignOutFilter
public CasSingleSignOutFilter()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet() throws jakarta.servlet.ServletException- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classorg.springframework.web.filter.GenericFilterBean
- Throws:
jakarta.servlet.ServletException
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
requiresProcessing
protected boolean requiresProcessing(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
isEnabled
public boolean isEnabled()- Returns:
- the enabled
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled
- the enabled to set
-
getFilterProcessesUrl
- Returns:
- the filterProcessesUrl
-
setFilterProcessesUrl
- Parameters:
filterProcessesUrl
- the filterProcessesUrl to set
-
getSingleSignOutHandler
public org.apereo.cas.client.session.SingleSignOutHandler getSingleSignOutHandler()- Returns:
- the singleSignOutHandler
-
setSingleSignOutHandler
public void setSingleSignOutHandler(org.apereo.cas.client.session.SingleSignOutHandler singleSignOutHandler) - Parameters:
singleSignOutHandler
- the singleSignOutHandler to set
-