Class PersistentTokenCacheAccessAspect

java.lang.Object
com.microsoft.sqlserver.jdbc.PersistentTokenCacheAccessAspect
All Implemented Interfaces:
com.microsoft.aad.msal4j.ITokenCacheAccessAspect

public class PersistentTokenCacheAccessAspect
extends java.lang.Object
implements com.microsoft.aad.msal4j.ITokenCacheAccessAspect
Access aspect for accessing the token cache. MSAL token cache does not persist beyond lifetime of the application. This class implements the ITokenCacheAccessAspect interface to persist the token cache between application instances so subsequent authentications can use silent authentication if the user account is in the token cache.
See Also:
https://aka.ms/msal4j-token-cache
  • Method Summary

    Modifier and Type Method Description
    void afterCacheAccess​(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)  
    void beforeCacheAccess​(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • beforeCacheAccess

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

      public void afterCacheAccess​(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)
      Specified by:
      afterCacheAccess in interface com.microsoft.aad.msal4j.ITokenCacheAccessAspect