com.microsoft.aad.adal
Class CacheKey

java.lang.Object
  extended by com.microsoft.aad.adal.CacheKey
All Implemented Interfaces:
Serializable

public final class CacheKey
extends Object
implements Serializable

CacheKey will be the object for key.

See Also:
Serialized Form

Method Summary
static String createCacheKey(com.microsoft.aad.adal.AuthenticationRequest item, String cacheUserId)
           
static String createCacheKey(String authority, String resource, String clientId, boolean isMultiResourceRefreshToken, String userId)
           
static String createCacheKey(TokenCacheItem item)
           
static String createMultiResourceRefreshTokenKey(com.microsoft.aad.adal.AuthenticationRequest item, String cacheUserId)
          Store multi resource refresh tokens with different key.
 String getAuthority()
          Gets Authority.
 String getClientId()
          Gets ClientId.
 boolean getIsMultipleResourceRefreshToken()
          Gets status for multi resource refresh token.
 String getResource()
          Gets Resource.
 String getUserId()
          Gets UserId.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

createCacheKey

public static String createCacheKey(String authority,
                                    String resource,
                                    String clientId,
                                    boolean isMultiResourceRefreshToken,
                                    String userId)
Parameters:
authority - URL of the authenticating authority
resource - resource identifier
clientId - client identifier
isMultiResourceRefreshToken - true/false for refresh token type
userId - userid provided from UserInfo
Returns:
CacheKey to use in saving token

createCacheKey

public static String createCacheKey(TokenCacheItem item)
Parameters:
item - Token item in the cache
Returns:
CacheKey to save token

createCacheKey

public static String createCacheKey(com.microsoft.aad.adal.AuthenticationRequest item,
                                    String cacheUserId)
Parameters:
item - AuthenticationRequest item
cacheUserId - UserId in the cache
Returns:
CacheKey to save token

createMultiResourceRefreshTokenKey

public static String createMultiResourceRefreshTokenKey(com.microsoft.aad.adal.AuthenticationRequest item,
                                                        String cacheUserId)
Store multi resource refresh tokens with different key. Key will not include resource and set flag to y.

Parameters:
item - AuthenticationRequest item
cacheUserId - UserId in the cache
Returns:
CacheKey to save token

getAuthority

public String getAuthority()
Gets Authority.

Returns:
Authority

getResource

public String getResource()
Gets Resource.

Returns:
Resource

getClientId

public String getClientId()
Gets ClientId.

Returns:
ClientId

getUserId

public String getUserId()
Gets UserId.

Returns:
UserId

getIsMultipleResourceRefreshToken

public boolean getIsMultipleResourceRefreshToken()
Gets status for multi resource refresh token.

Returns:
status for multi resource refresh token


Copyright © 2003–2015. All rights reserved.