Class ServletSamlSessionStore
- java.lang.Object
-
- org.keycloak.adapters.saml.undertow.ServletSamlSessionStore
-
- All Implemented Interfaces:
SamlSessionStore,AdapterSessionStore
public class ServletSamlSessionStore extends Object implements SamlSessionStore
Session store manipulation methods per single HTTP exchange.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.adapters.saml.SamlSessionStore
SamlSessionStore.CurrentAction
-
-
Field Summary
Fields Modifier and Type Field Description protected SamlDeploymentdeploymentprotected static org.jboss.logging.Loggerlogstatic StringSAML_REDIRECT_URI-
Fields inherited from interface org.keycloak.adapters.saml.SamlSessionStore
CURRENT_ACTION, SAML_LOGIN_ERROR_STATUS, SAML_LOGOUT_ERROR_STATUS
-
-
Constructor Summary
Constructors Constructor Description ServletSamlSessionStore(io.undertow.server.HttpServerExchange exchange, UndertowUserSessionManagement sessionManagement, io.undertow.security.api.SecurityContext securityContext, SessionIdMapper idMapper, SessionIdMapperUpdater idMapperUpdater, SamlDeployment deployment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringchangeSessionId(javax.servlet.http.HttpSession session)SamlSessiongetAccount()StringgetRedirectUri()protected javax.servlet.http.HttpSessiongetSession(boolean create)booleanisLoggedIn()booleanisLoggingIn()booleanisLoggingOut()voidlogoutAccount()voidlogoutByPrincipal(String principal)voidlogoutBySsoId(List<String> ssoIds)protected voidlogoutSessionIds(List<String> sessionIds)booleanrestoreRequest()voidsaveAccount(SamlSession account)voidsaveRequest()voidsetCurrentAction(SamlSessionStore.CurrentAction action)
-
-
-
Field Detail
-
log
protected static org.jboss.logging.Logger log
-
SAML_REDIRECT_URI
public static final String SAML_REDIRECT_URI
- See Also:
- Constant Field Values
-
deployment
protected final SamlDeployment deployment
-
-
Constructor Detail
-
ServletSamlSessionStore
public ServletSamlSessionStore(io.undertow.server.HttpServerExchange exchange, UndertowUserSessionManagement sessionManagement, io.undertow.security.api.SecurityContext securityContext, SessionIdMapper idMapper, SessionIdMapperUpdater idMapperUpdater, SamlDeployment deployment)
-
-
Method Detail
-
setCurrentAction
public void setCurrentAction(SamlSessionStore.CurrentAction action)
- Specified by:
setCurrentActionin interfaceSamlSessionStore
-
isLoggingIn
public boolean isLoggingIn()
- Specified by:
isLoggingInin interfaceSamlSessionStore
-
isLoggingOut
public boolean isLoggingOut()
- Specified by:
isLoggingOutin interfaceSamlSessionStore
-
logoutAccount
public void logoutAccount()
- Specified by:
logoutAccountin interfaceSamlSessionStore
-
logoutByPrincipal
public void logoutByPrincipal(String principal)
- Specified by:
logoutByPrincipalin interfaceSamlSessionStore
-
logoutBySsoId
public void logoutBySsoId(List<String> ssoIds)
- Specified by:
logoutBySsoIdin interfaceSamlSessionStore
-
isLoggedIn
public boolean isLoggedIn()
- Specified by:
isLoggedInin interfaceSamlSessionStore
-
saveAccount
public void saveAccount(SamlSession account)
- Specified by:
saveAccountin interfaceSamlSessionStore
-
changeSessionId
protected String changeSessionId(javax.servlet.http.HttpSession session)
-
getAccount
public SamlSession getAccount()
- Specified by:
getAccountin interfaceSamlSessionStore
-
getRedirectUri
public String getRedirectUri()
- Specified by:
getRedirectUriin interfaceSamlSessionStore
-
saveRequest
public void saveRequest()
- Specified by:
saveRequestin interfaceAdapterSessionStore
-
restoreRequest
public boolean restoreRequest()
- Specified by:
restoreRequestin interfaceAdapterSessionStore
-
getSession
protected javax.servlet.http.HttpSession getSession(boolean create)
-
-