public interface TokenCache
Modifier and Type | Method and Description |
---|---|
boolean |
existsTokenFor(GUID shopGuid)
Determines whether or not an token for the passed shop
identifier exists within the cache.
|
java.lang.String |
get(GUID shopGuid)
Returns the access token for the shop with
the passed identifier.
|
void |
put(GUID shopGuid,
java.lang.String accessToken)
Stores the passed access token in the cache mapped by the
specified shop identifier.
|
boolean existsTokenFor(GUID shopGuid)
shopGuid
- GUID of the shop.java.lang.String get(GUID shopGuid)
shopGuid
- GUID of the shop to retrieve a access token for.javax.persistence.EntityNotFoundException
- in case no access token was found.void put(GUID shopGuid, java.lang.String accessToken)
shopGuid
- GUID of the shop belonging to the access token to store.accessToken
- Access token to store.DataPersistenceException
- in case an error occurred while
trying to store to the cache.