Class SQLAssetStore
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<Asset>
-
- org.oa4mp.client.api.storage.SQLAssetStore
-
- All Implemented Interfaces:
AssetStore
,edu.uiuc.ncsa.security.core.Store<Asset>
,Map<edu.uiuc.ncsa.security.core.Identifier,Asset>
public class SQLAssetStore extends edu.uiuc.ncsa.security.storage.sql.SQLStore<Asset> implements AssetStore
Created by Jeff Gaynor
on 1/28/13 at 2:11 PM
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_TABLENAME
-
Constructor Summary
Constructors Constructor Description SQLAssetStore()
SQLAssetStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<Asset> assetProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<Asset> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Asset
get(String identifier)
Simplifying calls.protected AssetStoreTable
getAST()
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.String
getCreationTSField()
void
putByToken(Asset asset)
void
save(String identifier, Asset asset)
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, create, depopulate, entrySet, get, getAll, getDerbyMostRecent, getMapConverter, getMostRecent, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, save, search, search, search, size, size, size, toString, update, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
destroyConnection, getConnection, getConnectionPool, releaseConnection, rsToMap, setConnectionPool
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
DEFAULT_TABLENAME
public static final String DEFAULT_TABLENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public Asset get(String identifier)
Description copied from interface:AssetStore
Simplifying calls. These should simply convert the string to an identifier.- Specified by:
get
in interfaceAssetStore
- Returns:
-
save
public void save(String identifier, Asset asset)
- Specified by:
save
in interfaceAssetStore
-
getAST
protected AssetStoreTable getAST()
-
getByToken
public Asset getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Description copied from interface:AssetStore
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.- Specified by:
getByToken
in interfaceAssetStore
- Returns:
-
putByToken
public void putByToken(Asset asset)
- Specified by:
putByToken
in interfaceAssetStore
-
-