Class OidcSessionTokenStore

java.lang.Object
org.wildfly.security.http.oidc.OidcSessionTokenStore
All Implemented Interfaces:
OidcTokenStore

public class OidcSessionTokenStore extends Object implements OidcTokenStore
Author:
Pedro Igor, Marek Posolda, Farah Juma
  • Constructor Details

    • OidcSessionTokenStore

      public OidcSessionTokenStore(OidcHttpFacade httpFacade)
  • Method Details

    • checkCurrentToken

      public void checkCurrentToken()
      Description copied from interface: OidcTokenStore
      Check if the current token exists. Refresh the token if it exists but is expired.
      Specified by:
      checkCurrentToken in interface OidcTokenStore
    • isCached

      public boolean isCached(RequestAuthenticator authenticator)
      Description copied from interface: OidcTokenStore
      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.
      Specified by:
      isCached in interface OidcTokenStore
      Parameters:
      authenticator - used for actual request authentication
      Returns:
      true if we are logged in already; false otherwise
    • saveAccountInfo

      public void saveAccountInfo(OidcAccount account)
      Description copied from interface: OidcTokenStore
      Finish a successful login and store the validated account.
      Specified by:
      saveAccountInfo in interface OidcTokenStore
      Parameters:
      account - the validated account
    • logout

      public void logout()
      Description copied from interface: OidcTokenStore
      Handle logout on store side and possibly propagate logout call to the OIDC provider.
      Specified by:
      logout in interface OidcTokenStore
    • refreshCallback

      public void refreshCallback(RefreshableOidcSecurityContext securityContext)
      Description copied from interface: OidcTokenStore
      Callback invoked after a successful token refresh.
      Specified by:
      refreshCallback in interface OidcTokenStore
      Parameters:
      securityContext - context where refresh was performed
    • saveRequest

      public void saveRequest()
      Description copied from interface: OidcTokenStore
      Save the request.
      Specified by:
      saveRequest in interface OidcTokenStore
    • restoreRequest

      public boolean restoreRequest()
      Description copied from interface: OidcTokenStore
      Restore the request.
      Specified by:
      restoreRequest in interface OidcTokenStore
      Returns:
      true if the request was successfully restored; false otherwise
    • logout

      public void logout(boolean glo)
      Specified by:
      logout in interface OidcTokenStore
    • logoutAll

      public void logoutAll()
      Specified by:
      logoutAll in interface OidcTokenStore
    • logoutHttpSessions

      public void logoutHttpSessions(List<String> ids)
      Specified by:
      logoutHttpSessions in interface OidcTokenStore