|
|||||||||
| 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 AuthStoretoken - Auth object to be stored.
java.io.IOExceptionpublic Auth retrieve(java.lang.String nsid)
AuthStore
retrieve in interface AuthStorensid - NSID
public Auth[] retrieveAll()
AuthStore
retrieveAll in interface AuthStorepublic void clearAll()
AuthStore
clearAll in interface AuthStorepublic 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 | ||||||||