Class SpringSecurityCookieTokenStore
java.lang.Object
org.keycloak.adapters.springsecurity.token.SpringSecurityTokenStore
org.keycloak.adapters.springsecurity.token.SpringSecurityCookieTokenStore
- All Implemented Interfaces:
AdapterTokenStore,AdapterSessionStore
Extension of
SpringSecurityTokenStore that stores the obtains tokens in a cookie.- Author:
- Sjoerd Cranen
-
Constructor Summary
ConstructorsConstructorDescriptionSpringSecurityCookieTokenStore(KeycloakDeployment deployment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisCached(RequestAuthenticator authenticator) voidlogout()voidrefreshCallback(RefreshableKeycloakSecurityContext securityContext) voidsaveAccountInfo(OidcKeycloakAccount account) Methods inherited from class org.keycloak.adapters.springsecurity.token.SpringSecurityTokenStore
restoreRequest, saveRequest
-
Constructor Details
-
SpringSecurityCookieTokenStore
public SpringSecurityCookieTokenStore(KeycloakDeployment deployment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
Method Details
-
checkCurrentToken
public void checkCurrentToken()- Specified by:
checkCurrentTokenin interfaceAdapterTokenStore- Overrides:
checkCurrentTokenin classSpringSecurityTokenStore
-
isCached
- Specified by:
isCachedin interfaceAdapterTokenStore- Overrides:
isCachedin classSpringSecurityTokenStore
-
refreshCallback
- Specified by:
refreshCallbackin interfaceAdapterTokenStore- Overrides:
refreshCallbackin classSpringSecurityTokenStore
-
saveAccountInfo
- Specified by:
saveAccountInfoin interfaceAdapterTokenStore- Overrides:
saveAccountInfoin classSpringSecurityTokenStore
-
logout
public void logout()- Specified by:
logoutin interfaceAdapterTokenStore- Overrides:
logoutin classSpringSecurityTokenStore
-