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:
@@ -44,10 +44,13 @@ public class ClientResolver extends Invoker.Unit
|
||||
* Initiailizes this instance.
|
||||
*
|
||||
* @param username the username of the user to be resolved.
|
||||
* @param authdata an object optionally placed into the
|
||||
* AuthResponse.authdata field by the Authenticator.
|
||||
*/
|
||||
public void init (Name username)
|
||||
public void init (Name username, Object authdata)
|
||||
{
|
||||
_username = username;
|
||||
_authdata = authdata;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -181,6 +184,10 @@ public class ClientResolver extends Invoker.Unit
|
||||
/** The name of the user whose client object is being resolved. */
|
||||
protected Name _username;
|
||||
|
||||
/** An object placed into AuthResponse.authdata by the Authenticator,
|
||||
* or null. */
|
||||
protected Object _authdata;
|
||||
|
||||
/** The entities to notify of success or failure. */
|
||||
protected ArrayList<ClientResolutionListener> _listeners =
|
||||
new ArrayList<ClientResolutionListener>();
|
||||
|
||||
Reference in New Issue
Block a user