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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext context) voidbeforeCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext context) @Nullable String
-
Field Details
-
latestRefreshToken
-
-
Constructor Details
-
RefreshTokenCapturingCacheAspect
public RefreshTokenCapturingCacheAspect()
-
-
Method Details
-
beforeCacheAccess
public void beforeCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext context) - Specified by:
beforeCacheAccessin interfacecom.microsoft.aad.msal4j.ITokenCacheAccessAspect
-
afterCacheAccess
public void afterCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext context) - Specified by:
afterCacheAccessin interfacecom.microsoft.aad.msal4j.ITokenCacheAccessAspect
-
getLatestRefreshToken
-