Package org.keycloak.adapters.undertow
Class ServletSessionTokenStore
- java.lang.Object
-
- org.keycloak.adapters.undertow.ServletSessionTokenStore
-
- All Implemented Interfaces:
AdapterTokenStore,AdapterSessionStore
public class ServletSessionTokenStore extends Object implements AdapterTokenStore
Per-request object. Storage of tokens in servlet HTTP session.- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description ServletSessionTokenStore(io.undertow.server.HttpServerExchange exchange, KeycloakDeployment deployment, UndertowUserSessionManagement sessionManagement, io.undertow.security.api.SecurityContext securityContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCurrentToken()protected javax.servlet.http.HttpSessiongetSession(boolean create)booleanisCached(RequestAuthenticator authenticator)voidlogout()voidrefreshCallback(RefreshableKeycloakSecurityContext securityContext)booleanrestoreRequest()voidsaveAccountInfo(OidcKeycloakAccount account)voidsaveRequest()
-
-
-
Constructor Detail
-
ServletSessionTokenStore
public ServletSessionTokenStore(io.undertow.server.HttpServerExchange exchange, KeycloakDeployment deployment, UndertowUserSessionManagement sessionManagement, io.undertow.security.api.SecurityContext securityContext)
-
-
Method Detail
-
checkCurrentToken
public void checkCurrentToken()
- Specified by:
checkCurrentTokenin interfaceAdapterTokenStore
-
isCached
public boolean isCached(RequestAuthenticator authenticator)
- Specified by:
isCachedin interfaceAdapterTokenStore
-
saveAccountInfo
public void saveAccountInfo(OidcKeycloakAccount account)
- Specified by:
saveAccountInfoin interfaceAdapterTokenStore
-
logout
public void logout()
- Specified by:
logoutin interfaceAdapterTokenStore
-
refreshCallback
public void refreshCallback(RefreshableKeycloakSecurityContext securityContext)
- Specified by:
refreshCallbackin interfaceAdapterTokenStore
-
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)
-
-