net.sourceforge.guacamole.net.basic.auth
Class UserMapping
java.lang.Object
net.sourceforge.guacamole.net.basic.auth.UserMapping
public class UserMapping
- extends Object
Mapping of all usernames to corresponding authorizations.
- Author:
- Mike Jumper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserMapping
public UserMapping()
addAuthorization
public void addAuthorization(Authorization authorization)
- Adds the given authorization to the user mapping.
- Parameters:
authorization
- The authorization to add to the user mapping.
getAuthorization
public Authorization getAuthorization(String username)
- Returns the authorization corresponding to the user having the given
username, if any.
- Parameters:
username
- The username to find the authorization for.
- Returns:
- The authorization corresponding to the user having the given
username, or null if no such authorization exists.
Copyright © 2013. All Rights Reserved.