Class TokenInfoRecord
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.storage.TokenInfoRecord
-
public class TokenInfoRecord extends Object
Created by Jeff Gaynor
on 3/16/22 at 10:38 AM
-
-
Constructor Summary
Constructors Constructor Description TokenInfoRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected net.sf.json.JSONObject
formatToken(TokenImpl token, long lifetime, boolean isValid)
void
fromMap(edu.uiuc.ncsa.security.storage.sql.internals.ColumnMap map, OA2TransactionKeys keys)
For use in SQL storesvoid
fromTransaction(OA2ServiceTransaction t)
For use in stores like memory or filevoid
fromTXRecord(edu.uiuc.ncsa.security.core.Identifier clientID, TXRecord txr)
This has either a refresh or an access tokenboolean
hasAccessToken()
boolean
hasRefreshToken()
net.sf.json.JSONObject
toJSON()
-
-
-
Method Detail
-
fromMap
public void fromMap(edu.uiuc.ncsa.security.storage.sql.internals.ColumnMap map, OA2TransactionKeys keys)
For use in SQL stores- Parameters:
map
-keys
-
-
fromTransaction
public void fromTransaction(OA2ServiceTransaction t)
For use in stores like memory or file- Parameters:
t
-
-
toJSON
public net.sf.json.JSONObject toJSON()
-
formatToken
protected net.sf.json.JSONObject formatToken(TokenImpl token, long lifetime, boolean isValid)
-
hasAccessToken
public boolean hasAccessToken()
-
hasRefreshToken
public boolean hasRefreshToken()
-
fromTXRecord
public void fromTXRecord(edu.uiuc.ncsa.security.core.Identifier clientID, TXRecord txr)
This has either a refresh or an access token- Parameters:
txr
-
-
-