Interface AssetStore
-
- All Superinterfaces:
Map<edu.uiuc.ncsa.security.core.Identifier,Asset>
,edu.uiuc.ncsa.security.core.Store<Asset>
- All Known Implementing Classes:
FSAssetStore
,MemoryAssetStore
,SQLAssetStore
public interface AssetStore extends edu.uiuc.ncsa.security.core.Store<Asset>
The top-level abstract class for storingAsset
s. This is a map that is keyed off anIdentifier
generated by the client. The only requirement on the identifier is it be a URI, otherwise it may be arbitrary.Usage
A store is specified in the client configuration.Lifecycle
Once the asset store is specified in the configuration, the system will instantitate it and manage it. It is accessible from theClientEnvironment.getAssetStore()
Note that if there is no asset store specified, then calls for the store return a null, therefore implementors should check if there has been a store with theClientEnvironment.hasAssetStore()
method first.Created by Jeff Gaynor
on 1/23/13 at 4:42 PM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Asset
get(String identifier)
Simplifying calls.Asset
getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Part of solution to OAUTH-146: JSESSIONID bug causes session crossover if users have repeated failed attempts to get a cert and keep opening a new browser window each time.void
putByToken(Asset asset)
void
save(String identifier, Asset v)
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
get
Asset get(String identifier)
Simplifying calls. These should simply convert the string to an identifier.- Parameters:
identifier
-- Returns:
-
getByToken
Asset getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Part of solution to OAUTH-146: JSESSIONID bug causes session crossover if users have repeated failed attempts to get a cert and keep opening a new browser window each time.- Parameters:
token
-- Returns:
-
putByToken
void putByToken(Asset asset)
-
-