Package org.keycloak.adapters.jetty.core
Class JettySessionTokenStore
- java.lang.Object
-
- org.keycloak.adapters.jetty.core.JettySessionTokenStore
-
- All Implemented Interfaces:
AdapterTokenStore,AdapterSessionStore
public class JettySessionTokenStore extends Object implements AdapterTokenStore
Handle storage of token info in HTTP Session. Per-request object- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected KeycloakDeploymentdeploymentprotected AdapterSessionStoresessionStore
-
Constructor Summary
Constructors Constructor Description JettySessionTokenStore(org.eclipse.jetty.server.Request request, KeycloakDeployment deployment, AdapterSessionStore sessionStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCurrentToken()booleanisCached(RequestAuthenticator authenticator)voidlogout()voidrefreshCallback(RefreshableKeycloakSecurityContext securityContext)booleanrestoreRequest()voidsaveAccountInfo(OidcKeycloakAccount account)voidsaveRequest()
-
-
-
Field Detail
-
deployment
protected KeycloakDeployment deployment
-
sessionStore
protected AdapterSessionStore sessionStore
-
-
Constructor Detail
-
JettySessionTokenStore
public JettySessionTokenStore(org.eclipse.jetty.server.Request request, KeycloakDeployment deployment, AdapterSessionStore sessionStore)
-
-
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
-
-