Class TransactionCache.TransactionIndices<V extends BasicTransaction>

  • Enclosing class:
    TransactionCache<V extends BasicTransaction>

    public static class TransactionCache.TransactionIndices<V extends BasicTransaction>
    extends Object
    The indices for a transaction store. This allows managing retrieval by identifier, tempCred, access token or verifier.
    This does not implement map since this is to be an aggregate of indices, even though this behaves like a map in many ways. Forcing it to be one is not a clean separation of concerns. For instance, the transaction has its identifier embedded in it, so the key/value pair operations are redundant.

    Created by Jeff Gaynor
    on Nov 22, 2010 at 11:51:33 AM

    • Constructor Detail

      • TransactionIndices

        public TransactionIndices()
    • Method Detail

      • getCreatedTransactions

        public HashMap<edu.uiuc.ncsa.security.core.Identifier,​V> getCreatedTransactions()
        A list of transactions that have been created but not saved. Multiple create requests must return the same instance of a transaction.
        Returns:
      • add

        public void add​(V t)
      • remove

        public void remove​(V t)
      • getTransactions

        protected Map<edu.uiuc.ncsa.security.core.Identifier,​V> getTransactions()
      • get

        public V get​(edu.uiuc.ncsa.security.core.Identifier identifier)
      • clear

        public void clear()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • containsKey

        public boolean containsKey​(Object key)
      • containsValue

        public boolean containsValue​(Object value)
      • put

        public V put​(edu.uiuc.ncsa.security.core.Identifier key,
                     V value)
      • remove

        public V remove​(Object key)
      • keySet

        public Set<edu.uiuc.ncsa.security.core.Identifier> keySet()
      • entrySet

        public Set<Map.Entry<edu.uiuc.ncsa.security.core.Identifier,​V>> entrySet()
      • getAuthorizationGrantIndex

        protected HashMap<String,​edu.uiuc.ncsa.security.core.Identifier> getAuthorizationGrantIndex()
      • getVerifierIndex

        protected HashMap<String,​edu.uiuc.ncsa.security.core.Identifier> getVerifierIndex()
      • getAccessTokenIndex

        protected HashMap<String,​edu.uiuc.ncsa.security.core.Identifier> getAccessTokenIndex()