Implemented bureau authentication

* Token member for bureaus
* Exception type for failed authentication
* Authenticate function
* Bureau id to credentials
* Fixed bad constructor and toString


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5149 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Jamie Doornbos
2008-06-02 04:38:01 +00:00
parent 6c34b9e3ed
commit 69451c5682
5 changed files with 74 additions and 19 deletions
@@ -41,13 +41,10 @@ public abstract class BureauClient extends Client
public BureauClient (String token, String bureauId, RunQueue runQueue)
{
super(null, runQueue);
_bureauId = bureauId;
BureauCredentials creds = new BureauCredentials(_bureauId);
creds.sessionToken = token;
_creds = creds;
_ctx = createContext();
_director = createDirector();
}