com.veriplace.client.store
Class MemoryTokenStore

java.lang.Object
  extended by com.veriplace.client.store.MemoryTokenStore
All Implemented Interfaces:
TokenStore

public class MemoryTokenStore
extends java.lang.Object
implements TokenStore

An in-memory implemention of TokenStore


Constructor Summary
MemoryTokenStore()
           
 
Method Summary
 void add(Token token)
          Add a token to this store.
 Token get(java.lang.String token)
          Get a token by value.
 void remove(Token token)
          Remove a token from this store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryTokenStore

public MemoryTokenStore()
Method Detail

get

public Token get(java.lang.String token)
Get a token by value.

Specified by:
get in interface TokenStore
Returns:
a token where Token.getToken() equals the given value.

add

public void add(Token token)
Add a token to this store.

Specified by:
add in interface TokenStore

remove

public void remove(Token token)
Remove a token from this store.

Specified by:
remove in interface TokenStore