Class SpringSecurityTokenStore
- java.lang.Object
-
- org.keycloak.adapters.springsecurity.token.SpringSecurityTokenStore
-
- All Implemented Interfaces:
AdapterTokenStore,AdapterSessionStore
- Direct Known Subclasses:
SpringSecurityCookieTokenStore
public class SpringSecurityTokenStore extends Object implements AdapterTokenStore
Simple Springsecurity contextawareadapter token store.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
-
-
Constructor Summary
Constructors Constructor Description SpringSecurityTokenStore(KeycloakDeployment deployment, javax.servlet.http.HttpServletRequest request)
-
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()
-
-
-
Constructor Detail
-
SpringSecurityTokenStore
public SpringSecurityTokenStore(KeycloakDeployment deployment, javax.servlet.http.HttpServletRequest request)
-
-
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
-
-