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
ConstructorDescriptionSpringSecurityCookieTokenStore
(KeycloakDeployment deployment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
isCached
(RequestAuthenticator authenticator) void
logout()
void
refreshCallback
(RefreshableKeycloakSecurityContext securityContext) void
saveAccountInfo
(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:
checkCurrentToken
in interfaceAdapterTokenStore
- Overrides:
checkCurrentToken
in classSpringSecurityTokenStore
-
isCached
- Specified by:
isCached
in interfaceAdapterTokenStore
- Overrides:
isCached
in classSpringSecurityTokenStore
-
refreshCallback
- Specified by:
refreshCallback
in interfaceAdapterTokenStore
- Overrides:
refreshCallback
in classSpringSecurityTokenStore
-
saveAccountInfo
- Specified by:
saveAccountInfo
in interfaceAdapterTokenStore
- Overrides:
saveAccountInfo
in classSpringSecurityTokenStore
-
logout
public void logout()- Specified by:
logout
in interfaceAdapterTokenStore
- Overrides:
logout
in classSpringSecurityTokenStore
-