Package org.keycloak.adapters.undertow
Class UndertowSessionTokenStore
java.lang.Object
org.keycloak.adapters.undertow.UndertowSessionTokenStore
- All Implemented Interfaces:
AdapterTokenStore,AdapterSessionStore
Per-request object. Storage of tokens in undertow session.
- Author:
- Marek Posolda
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUndertowSessionTokenStore(io.undertow.server.HttpServerExchange exchange, KeycloakDeployment deployment, UndertowUserSessionManagement sessionManagement, io.undertow.security.api.SecurityContext securityContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisCached(RequestAuthenticator authenticator) voidlogout()voidrefreshCallback(RefreshableKeycloakSecurityContext securityContext) booleanvoidsaveAccountInfo(OidcKeycloakAccount account) void
-
Field Details
-
log
protected static org.jboss.logging.Logger log
-
-
Constructor Details
-
UndertowSessionTokenStore
public UndertowSessionTokenStore(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
-
saveRequest
public void saveRequest()- Specified by:
saveRequestin interfaceAdapterSessionStore
-
restoreRequest
public boolean restoreRequest()- Specified by:
restoreRequestin interfaceAdapterSessionStore
-
saveAccountInfo
- Specified by:
saveAccountInfoin interfaceAdapterTokenStore
-
logout
public void logout()- Specified by:
logoutin interfaceAdapterTokenStore
-
refreshCallback
- Specified by:
refreshCallbackin interfaceAdapterTokenStore
-