Class SQLTXRecordStore<V extends TXRecord>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<V>
-
- edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage.tx.SQLTXRecordStore<V>
-
- All Implemented Interfaces:
TXStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public class SQLTXRecordStore<V extends TXRecord> extends edu.uiuc.ncsa.security.storage.sql.SQLStore<V> implements TXStore<V>
Note that the identifier is simple the JTI of the token and may be either an access or refresh token. The important bit is that there si also a pernt id which is the auth grant of the original service transaction. This is how they tie together.Created by Jeff Gaynor
on 12/14/20 at 10:40 AM
-
-
Constructor Summary
Constructors Constructor Description SQLTXRecordStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, TXRecordTable table, javax.inject.Provider<V> identifiableProvider, TXRecordConverter<V> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<V>
getByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)
Get a list of all records for a given parent.int
getCountByParent(edu.uiuc.ncsa.security.core.Identifier parentID)
String
getCreationTSField()
protected TXRecordTable
getTXRTable()
-
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
-
Methods inherited from interface edu.uiuc.ncsa.security.core.Store
create, getAll, getMostRecent, getXMLConverter, register, remove, save, search, search, search, size, update
-
Methods inherited from interface edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage.tx.TXStore
getMapConverter
-
-
-
-
Constructor Detail
-
SQLTXRecordStore
public SQLTXRecordStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, TXRecordTable table, javax.inject.Provider<V> identifiableProvider, TXRecordConverter<V> converter)
-
-
Method Detail
-
getTXRTable
protected TXRecordTable getTXRTable()
-
getByParentID
public List<V> getByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)
Description copied from interface:TXStore
Get a list of all records for a given parent.- Specified by:
getByParentID
in interfaceTXStore<V extends TXRecord>
- Returns:
-
getCountByParent
public int getCountByParent(edu.uiuc.ncsa.security.core.Identifier parentID)
- Specified by:
getCountByParent
in interfaceTXStore<V extends TXRecord>
-
-