/**
*
*/
package com.flickr4java.flickr.util;
import com.flickr4java.flickr.auth.Auth;
import java.io.IOException;
/**
* Defines an interface for possibly persistent storage of token information.
*
* @author Matthew MacKenzie
* @version $Id: AuthStore.java,v 1.2 2007/09/09 17:15:57 x-mago Exp $
*/
public interface AuthStore {
/**
* Store an Auth.
*
* @param token
* Auth object to be stored.
* @throws IOException
*/
void store(Auth token) throws IOException;
/**
* Retrieve Auth for a given NSID.
*
* @param nsid
* NSID
* @return Auth
*/
Auth retrieve(String nsid);
/**
* Retrieve all Auth objects being stored.
*
* @return Auth objects
*/
Auth[] retrieveAll();
/**
* Clear out the store.
*
*/
void clearAll();
/**
* Clear for a given NSID.
*
* @param nsid
*/
void clear(String nsid);
}