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:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCacheAccess
(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext) void
beforeCacheAccess
(com.microsoft.aad.msal4j.ITokenCacheAccessContext iTokenCacheAccessContext)
-
Method Details
-
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
-