Class OA2FSTStore<V extends OA2ServiceTransaction>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<V>
-
- org.oa4mp.delegation.common.transactions.storage.FSTransactionStore<V>
-
- org.oa4mp.server.api.transactions.admin.DSFSTransactionStore<V>
-
- org.oa4mp.server.loader.oauth2.storage.transactions.OA2FSTStore<V>
-
- All Implemented Interfaces:
RefreshTokenStore<V>
,RFC8628Store<V>
,OA2TStoreInterface<V>
,UsernameFindable<V>
,TransactionStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public class OA2FSTStore<V extends OA2ServiceTransaction> extends DSFSTransactionStore<V> implements OA2TStoreInterface<V>
Created by Jeff Gaynor
on 3/12/14 at 1:21 PM
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.storage.transactions.FSTransactionStore
tokenForge
-
Fields inherited from class edu.uiuc.ncsa.security.storage.FileStore
indexDirectory, storageDirectory
-
-
Constructor Summary
Constructors Constructor Description OA2FSTStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, TokenForge tokenForge, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(AccessTokenImpl accessToken, edu.uiuc.ncsa.security.core.Identifier clientID)
V
get(RefreshTokenImpl refreshToken, edu.uiuc.ncsa.security.core.Identifier clientID)
V
get(RefreshToken refreshToken)
V
getByProxyID(edu.uiuc.ncsa.security.core.Identifier proxyID)
V
getByUserCode(String userCode)
List<V>
getByUsername(String username)
List<RFC8628State>
getPending()
protected String
getSubIndexKey(String token, edu.uiuc.ncsa.security.core.Identifier clientID)
TokenInfoRecordMap
getTokenInfo(String username)
boolean
hasUserCode(String userCode)
V
realRemove(V thingie)
void
realSave(boolean checkExists, V t)
Add code to store index references to the transaction by access token, verifier and authorization grant.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.server.admin.transactions.DSFSTransactionStore
getMostRecent
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.storage.transactions.FSTransactionStore
get, get, get, getMapConverter
-
Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore
checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, get, getAll, getIndexEntry, getItemFile, getItemFile, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, register, remove, remove, removeIndexEntry, save, search, search, search, size, size, toString, update, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore
createIndexEntry, getCreatedItems, hashString, isEmpty, loadStream, put, put
-
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.oa4mp.delegation.common.storage.TransactionStore
get, get, get, getMapConverter
-
-
-
-
Constructor Detail
-
OA2FSTStore
public OA2FSTStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, TokenForge tokenForge, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles)
-
-
Method Detail
-
get
public V get(RefreshToken refreshToken)
- Specified by:
get
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
get
in interfaceRefreshTokenStore<V extends OA2ServiceTransaction>
-
get
public V get(AccessTokenImpl accessToken, edu.uiuc.ncsa.security.core.Identifier clientID)
- Specified by:
get
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
get
public V get(RefreshTokenImpl refreshToken, edu.uiuc.ncsa.security.core.Identifier clientID)
- Specified by:
get
in interfaceRefreshTokenStore<V extends OA2ServiceTransaction>
-
getSubIndexKey
protected String getSubIndexKey(String token, edu.uiuc.ncsa.security.core.Identifier clientID)
-
realRemove
public V realRemove(V thingie)
- Overrides:
realRemove
in classFSTransactionStore<V extends OA2ServiceTransaction>
-
realSave
public void realSave(boolean checkExists, V t)
Description copied from class:FSTransactionStore
Add code to store index references to the transaction by access token, verifier and authorization grant.- Overrides:
realSave
in classFSTransactionStore<V extends OA2ServiceTransaction>
-
getByUsername
public List<V> getByUsername(String username)
- Specified by:
getByUsername
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
getByUsername
in interfaceUsernameFindable<V extends OA2ServiceTransaction>
-
getTokenInfo
public TokenInfoRecordMap getTokenInfo(String username)
- Specified by:
getTokenInfo
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
getPending
public List<RFC8628State> getPending()
- Specified by:
getPending
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
getPending
in interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
getByUserCode
public V getByUserCode(String userCode)
- Specified by:
getByUserCode
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
getByUserCode
in interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
getByProxyID
public V getByProxyID(edu.uiuc.ncsa.security.core.Identifier proxyID)
- Specified by:
getByProxyID
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
getByProxyID
in interfaceTransactionStore<V extends OA2ServiceTransaction>
- Overrides:
getByProxyID
in classDSFSTransactionStore<V extends OA2ServiceTransaction>
-
hasUserCode
public boolean hasUserCode(String userCode)
- Specified by:
hasUserCode
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
hasUserCode
in interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
-