Package org.oa4mp.client.api.storage
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:
edu.uiuc.ncsa.security.core.Store<Asset>,Map<edu.uiuc.ncsa.security.core.Identifier,Asset>,AssetStore
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 StringDEFAULT_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 Assetget(String identifier)Simplifying calls.protected AssetStoreTablegetAST()AssetgetByToken(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.StringgetCreationTSField()voidputByToken(Asset asset)voidsave(String identifier, Asset asset)-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, crappySQLParser, crappySQLParser, create, depopulate, doRegisterStatement, entrySet, get, getAll, getDerbyMostRecent, getMapConverter, getMostRecent, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, removeByID, save, search, search, search, search, setUpdateValues, size, size, size, toString, update, update, 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:AssetStoreSimplifying calls. These should simply convert the string to an identifier.- Specified by:
getin interfaceAssetStore- Returns:
-
save
public void save(String identifier, Asset asset)
- Specified by:
savein interfaceAssetStore
-
getAST
protected AssetStoreTable getAST()
-
getByToken
public Asset getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Description copied from interface:AssetStorePart 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:
getByTokenin interfaceAssetStore- Returns:
-
putByToken
public void putByToken(Asset asset)
- Specified by:
putByTokenin interfaceAssetStore
-
-