Class SpringSecurityTokenStore
java.lang.Object
org.keycloak.adapters.springsecurity.token.SpringSecurityTokenStore
- All Implemented Interfaces:
AdapterTokenStore
,AdapterSessionStore
- Direct Known Subclasses:
SpringSecurityCookieTokenStore
Simple Spring
security context
aware adapter token store
.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
-
Constructor Summary
ConstructorDescriptionSpringSecurityTokenStore
(KeycloakDeployment deployment, javax.servlet.http.HttpServletRequest request) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
isCached
(RequestAuthenticator authenticator) void
logout()
void
refreshCallback
(RefreshableKeycloakSecurityContext securityContext) boolean
void
saveAccountInfo
(OidcKeycloakAccount account) void
-
Constructor Details
-
SpringSecurityTokenStore
public SpringSecurityTokenStore(KeycloakDeployment deployment, javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
checkCurrentToken
public void checkCurrentToken()- Specified by:
checkCurrentToken
in interfaceAdapterTokenStore
-
isCached
- Specified by:
isCached
in interfaceAdapterTokenStore
-
saveAccountInfo
- Specified by:
saveAccountInfo
in interfaceAdapterTokenStore
-
logout
public void logout()- Specified by:
logout
in interfaceAdapterTokenStore
-
refreshCallback
- Specified by:
refreshCallback
in interfaceAdapterTokenStore
-
saveRequest
public void saveRequest()- Specified by:
saveRequest
in interfaceAdapterSessionStore
-
restoreRequest
public boolean restoreRequest()- Specified by:
restoreRequest
in interfaceAdapterSessionStore
-