Give Bureaus their own client object subclass. It does nothing at the moment, but we need it to be a distinct type for access control purposes.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5600 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Par Winzell
2008-12-12 15:36:46 +00:00
parent 1052aa86ec
commit fb4a28b2ed
7 changed files with 103 additions and 8 deletions
@@ -58,10 +58,8 @@ public class BureauSessionFactory implements SessionFactory
// from interface SessionFactory
public Class<? extends ClientResolver> getClientResolverClass (Name username)
{
// Just give bureaus a vanilla ClientResolver for now.
// TODO: will bureaus need specific resolution?
if (BureauCredentials.isBureau(username)) {
return ClientResolver.class;
return BureauClientResolver.class;
} else {
return _delegate.getClientResolverClass(username);
}