public interface AdapterTokenStore
Modifier and Type | Method and Description |
---|---|
void |
checkCurrentToken()
Impl can validate if current token exists and perform refreshing if it exists and is expired
|
boolean |
isCached(RequestAuthenticator authenticator)
Check if we are logged already (we have already valid and successfully refreshed accessToken).
|
void |
logout()
Handle logout on store side and possibly propagate logout call to Keycloak
|
void |
refreshCallback(RefreshableKeycloakSecurityContext securityContext)
Callback invoked after successful token refresh
|
boolean |
restoreRequest() |
void |
saveAccountInfo(KeycloakAccount account)
Finish successful OAuth2 login and store validated account
|
void |
saveRequest() |
void checkCurrentToken()
boolean isCached(RequestAuthenticator authenticator)
authenticator
- used for actual request authenticationvoid saveAccountInfo(KeycloakAccount account)
account
- void logout()
void refreshCallback(RefreshableKeycloakSecurityContext securityContext)
securityContext
- context where refresh was performedvoid saveRequest()
boolean restoreRequest()
Copyright © 2015. All Rights Reserved.