Class TokenInfoRecord


  • public class TokenInfoRecord
    extends Object

    Created by Jeff Gaynor
    on 3/16/22 at 10:38 AM

    • Constructor Detail

      • TokenInfoRecord

        public TokenInfoRecord()
    • 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 -