CacheKey Class

  • java.lang.Object
    • com.microsoft.identity.common.adal.internal.cache.CacheKey
      • com.microsoft.aad.adal.CacheKey

public class CacheKey

CacheKey will be the object for key.

Method Summary

Modifier and Type Method and Description
String createCacheKey(@NonNull final TokenCacheItem item)

Create cachekey from TokenCacheItem. It will use getUserId() as the user for cachekey if present.

Method Details

createCacheKey

public static String createCacheKey(@NonNull final TokenCacheItem item)

Create cachekey from TokenCacheItem. It will use getUserId() as the user for cachekey if present.

Parameters:

item -

TokenCacheItem that is used to create the cache key.

Returns:

String value of the CacheKey to save token.

Throws:

AuthenticationException

Applies to