com.veriplace.client.store
Interface TokenStore

All Known Implementing Classes:
FileTokenStore, MemoryTokenStore

public interface TokenStore

Interface for tracking Tokens between OAuth requests.


Method Summary
 void add(Token token)
          Save a token.
 Token get(java.lang.String token)
          Retrieve a token.
 void remove(Token token)
          Remove a token from this store.
 

Method Detail

get

Token get(java.lang.String token)
Retrieve a token.

Returns:
a token where Token.getToken() equals the given value.

add

void add(Token token)
         throws java.io.IOException
Save a token.

Throws:
java.io.IOException

remove

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