Module com.microsoft.sqlserver.jdbc
Package com.microsoft.sqlserver.jdbc
Class PersistentTokenCacheAccessAspect
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.PersistentTokenCacheAccessAspect
-
- All Implemented Interfaces:
com.microsoft.aad.msal4j.ITokenCacheAccessAspect
public class PersistentTokenCacheAccessAspect extends 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)
void
beforeCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)
-
-
-
Method Detail
-
beforeCacheAccess
public void beforeCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)
- Specified by:
beforeCacheAccess
in interfacecom.microsoft.aad.msal4j.ITokenCacheAccessAspect
-
afterCacheAccess
public void afterCacheAccess(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)
- Specified by:
afterCacheAccess
in interfacecom.microsoft.aad.msal4j.ITokenCacheAccessAspect
-
-