MSALSerializedADALCacheProviderDelegate
Objective-C
@protocol MSALSerializedADALCacheProviderDelegate <NSObject>
Swift
protocol MSALSerializedADALCacheProviderDelegate : NSObjectProtocol
Class implementing MSALSerializedADALCacheProviderDelegate is responsible for persistence and management of ADAL cache on macOS
-
This delegate method will be called before performing a cache lookup operation. The delegate implementation should ensure that latest cache is loaded from disk to the in-memory representation of ADAL cache (MSALSerializedADALCacheProvider) at this point
Declaration
Objective-C
- (void)willAccessCache:(nonnull MSALSerializedADALCacheProvider *)cache;
Swift
func willAccessCache(_ cache: MSALSerializedADALCacheProvider)
-
This delegate method will be called after performing a cache lookup operation.
Declaration
Objective-C
- (void)didAccessCache:(nonnull MSALSerializedADALCacheProvider *)cache;
Swift
func didAccessCache(_ cache: MSALSerializedADALCacheProvider)
-
This delegate method will be called before performing a cache write operation. The delegate implementation should ensure that latest cache is loaded from disk to the in-memory representation of ADAL cache (MSALSerializedADALCacheProvider) at this point.
Declaration
Objective-C
- (void)willWriteCache:(nonnull MSALSerializedADALCacheProvider *)cache;
Swift
func willWriteCache(_ cache: MSALSerializedADALCacheProvider)
-
This delegate method will be called after performing a cache update operation. The delegate implementation should serialize and write the latest in-memory representation of ADAL cache to disk at this point.
Declaration
Objective-C
- (void)didWriteCache:(nonnull MSALSerializedADALCacheProvider *)cache;
Swift
func didWriteCache(_ cache: MSALSerializedADALCacheProvider)