- All Implemented Interfaces:
- javax.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.web.context.ServletContextAware
public class ApiSessionExpirationFilter
extends org.springframework.web.filter.GenericFilterBean
Check if the requested sessionId is valid for an api call.
If No JSESSIONID is provided it session is valid.
If session is invalid a 401 is returned to the client.
Because the REST api doesn't need authentication this Filter must be used in addition to the
AjaxAwareLoginUrlAuthenticationEntryPoint that only works on protected urls.