Package org.wildfly.security.http.oidc
Interface OidcTokenStore
- 
- All Known Implementing Classes:
- OidcCookieTokenStore,- OidcSessionTokenStore
 
 public interface OidcTokenStore- Author:
- Pedro Igor, Marek Posolda, Farah Juma
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckCurrentToken()Check if the current token exists.booleanisCached(RequestAuthenticator authenticator)Check if we are already logged in (i.e., check if we have a valid and successfully refreshed access token).voidlogout()Handle logout on store side and possibly propagate logout call to the OIDC provider.voidlogout(boolean glo)voidlogoutAll()voidlogoutHttpSessions(List<String> ids)voidrefreshCallback(RefreshableOidcSecurityContext securityContext)Callback invoked after a successful token refresh.booleanrestoreRequest()Restore the request.voidsaveAccountInfo(OidcAccount account)Finish a successful login and store the validated account.voidsaveRequest()Save the request.
 
- 
- 
- 
Method Detail- 
logoutvoid logout(boolean glo) 
 - 
checkCurrentTokenvoid checkCurrentToken() Check if the current token exists. Refresh the token if it exists but is expired.
 - 
isCachedboolean isCached(RequestAuthenticator authenticator) Check if we are already logged in (i.e., check if we have a valid and successfully refreshed access token). If so, establish the security context.- Parameters:
- authenticator- used for actual request authentication
- Returns:
- trueif we are logged in already;- falseotherwise
 
 - 
saveAccountInfovoid saveAccountInfo(OidcAccount account) Finish a successful login and store the validated account.- Parameters:
- account- the validated account
 
 - 
logoutvoid logout() Handle logout on store side and possibly propagate logout call to the OIDC provider.
 - 
logoutAllvoid logoutAll() 
 - 
refreshCallbackvoid refreshCallback(RefreshableOidcSecurityContext securityContext) Callback invoked after a successful token refresh.- Parameters:
- securityContext- context where refresh was performed
 
 - 
saveRequestvoid saveRequest() Save the request.
 - 
restoreRequestboolean restoreRequest() Restore the request.- Returns:
- trueif the request was successfully restored;- falseotherwise
 
 
- 
 
-