Pass the authdata returned by the Authenticator into the ClientResolver.
This is actually kind of sketchy, because the resolver can't depend on it because there are methods to resolve a client object without having an authenticated connection. For now, I'll leave this in. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4350 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -225,7 +225,7 @@ public class ClientManager
|
||||
*/
|
||||
public void applyToClient (Name username, ClientOp clop)
|
||||
{
|
||||
resolveClientObject(username, new ClientOpResolver(clop));
|
||||
resolveClientObject(username, null, new ClientOpResolver(clop));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -238,7 +238,7 @@ public class ClientManager
|
||||
* when the caller is finished with the client object.
|
||||
*/
|
||||
public synchronized void resolveClientObject (
|
||||
Name username, final ClientResolutionListener listener)
|
||||
Name username, Object authdata, final ClientResolutionListener listener)
|
||||
{
|
||||
// look to see if the client object is already resolved
|
||||
ClientObject clobj = _objmap.get(username);
|
||||
@@ -260,7 +260,7 @@ public class ClientManager
|
||||
// create a client resolver instance which will create our
|
||||
// client object, populate it and notify the listeners
|
||||
clr = _factory.createClientResolver(username);
|
||||
clr.init(username);
|
||||
clr.init(username, authdata);
|
||||
clr.addResolutionListener(this);
|
||||
clr.addResolutionListener(listener);
|
||||
_penders.put(username, clr);
|
||||
|
||||
Reference in New Issue
Block a user