Package org.keycloak.adapters.jetty.core
Class JettyCookieTokenStore
java.lang.Object
org.keycloak.adapters.jetty.core.JettyCookieTokenStore
- All Implemented Interfaces:
AdapterTokenStore,AdapterSessionStore
Handle storage of token info in cookie. Per-request object.
- Author:
- Marek Posolda
-
Constructor Summary
ConstructorsConstructorDescriptionJettyCookieTokenStore(org.eclipse.jetty.server.Request request, HttpFacade facade, KeycloakDeployment deployment) -
Method Summary
Modifier and TypeMethodDescriptionvoidVerify if we already have authenticated and active principal in cookie.booleanisCached(RequestAuthenticator authenticator) voidlogout()voidrefreshCallback(RefreshableKeycloakSecurityContext secContext) booleanvoidsaveAccountInfo(OidcKeycloakAccount account) void
-
Constructor Details
-
JettyCookieTokenStore
public JettyCookieTokenStore(org.eclipse.jetty.server.Request request, HttpFacade facade, KeycloakDeployment deployment)
-
-
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
-
checkPrincipalFromCookie
Verify if we already have authenticated and active principal in cookie. Perform refresh if it's not active- Returns:
- valid principal
-
saveRequest
public void saveRequest()- Specified by:
saveRequestin interfaceAdapterSessionStore
-
restoreRequest
public boolean restoreRequest()- Specified by:
restoreRequestin interfaceAdapterSessionStore
-