Class CasSessionFixationProtectionStrategy
java.lang.Object
org.springframework.security.web.authentication.session.AbstractSessionFixationProtectionStrategy
org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy
org.jenkinsci.plugins.cas.spring.security.CasSessionFixationProtectionStrategy
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.security.web.authentication.session.SessionAuthenticationStrategy
public class CasSessionFixationProtectionStrategy
extends org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy
Session fixation protection strategy that invalidates the existing session
and integrates with the Single Sign-Out session mapping storage.
- Author:
- Fabien Crespel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.web.authentication.session.AbstractSessionFixationProtectionStrategy
org.springframework.security.web.authentication.session.AbstractSessionFixationProtectionStrategy.NullEventPublisher
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apereo.cas.client.session.SessionMappingStorage
Fields inherited from class org.springframework.security.web.authentication.session.AbstractSessionFixationProtectionStrategy
logger
-
Constructor Summary
ConstructorDescriptionCasSessionFixationProtectionStrategy
(org.apereo.cas.client.session.SessionMappingStorage sessionStorage) -
Method Summary
Modifier and TypeMethodDescriptionorg.apereo.cas.client.session.SessionMappingStorage
protected void
onSessionChange
(String originalSessionId, jakarta.servlet.http.HttpSession newSession, org.springframework.security.core.Authentication auth) void
setSessionStorage
(org.apereo.cas.client.session.SessionMappingStorage sessionStorage) Methods inherited from class org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy
extractAttributes, setMigrateSessionAttributes
Methods inherited from class org.springframework.security.web.authentication.session.AbstractSessionFixationProtectionStrategy
onAuthentication, setAlwaysCreateSession, setApplicationEventPublisher
-
Field Details
-
sessionStorage
protected org.apereo.cas.client.session.SessionMappingStorage sessionStorage
-
-
Constructor Details
-
CasSessionFixationProtectionStrategy
public CasSessionFixationProtectionStrategy() -
CasSessionFixationProtectionStrategy
public CasSessionFixationProtectionStrategy(org.apereo.cas.client.session.SessionMappingStorage sessionStorage)
-
-
Method Details
-
onSessionChange
protected void onSessionChange(String originalSessionId, jakarta.servlet.http.HttpSession newSession, org.springframework.security.core.Authentication auth) - Overrides:
onSessionChange
in classorg.springframework.security.web.authentication.session.AbstractSessionFixationProtectionStrategy
-
getSessionStorage
public org.apereo.cas.client.session.SessionMappingStorage getSessionStorage() -
setSessionStorage
public void setSessionStorage(org.apereo.cas.client.session.SessionMappingStorage sessionStorage)
-