Class RefreshTokenCapturingCacheAspect

java.lang.Object
io.jmix.email.authentication.impl.RefreshTokenCapturingCacheAspect
All Implemented Interfaces:
com.microsoft.aad.msal4j.ITokenCacheAccessAspect

public class RefreshTokenCapturingCacheAspect extends Object implements com.microsoft.aad.msal4j.ITokenCacheAccessAspect
Captures the latest refresh token from the MSAL token cache. The cache itself is kept in memory within the client application instance, so nothing is loaded on beforeCacheAccess.
  • Field Details

  • Constructor Details

    • RefreshTokenCapturingCacheAspect

      public RefreshTokenCapturingCacheAspect()
  • Method Details

    • beforeCacheAccess

      public void beforeCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext context)
      Specified by:
      beforeCacheAccess in interface com.microsoft.aad.msal4j.ITokenCacheAccessAspect
    • afterCacheAccess

      public void afterCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext context)
      Specified by:
      afterCacheAccess in interface com.microsoft.aad.msal4j.ITokenCacheAccessAspect
    • getLatestRefreshToken

      public @Nullable String getLatestRefreshToken()