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