|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aetrion.flickr.util.FileAuthStore
public class FileAuthStore
Implements a filesystem based storage system for Auth instances. One ".auth" file is maintained per Auth instance stored.
Constructor Summary | |
---|---|
FileAuthStore(java.io.File authStoreDir)
|
Method Summary | |
---|---|
void |
clear(java.lang.String nsid)
Clear for a given NSID. |
void |
clearAll()
Clear out the store. |
static void |
main(java.lang.String[] args)
|
Auth |
retrieve(java.lang.String nsid)
Retrieve Auth for a given NSID. |
Auth[] |
retrieveAll()
Retrieve all Auth objects being stored. |
void |
store(Auth token)
Store an Auth. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileAuthStore(java.io.File authStoreDir) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void store(Auth token) throws java.io.IOException
AuthStore
store
in interface AuthStore
token
- Auth object to be stored.
java.io.IOException
public Auth retrieve(java.lang.String nsid)
AuthStore
retrieve
in interface AuthStore
nsid
- NSID
public Auth[] retrieveAll()
AuthStore
retrieveAll
in interface AuthStore
public void clearAll()
AuthStore
clearAll
in interface AuthStore
public void clear(java.lang.String nsid)
AuthStore
clear
in interface AuthStore
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |