net.sourceforge.guacamole.net.basic.auth
Class UserMapping

java.lang.Object
  extended by net.sourceforge.guacamole.net.basic.auth.UserMapping

public class UserMapping
extends Object

Mapping of all usernames to corresponding authorizations.

Author:
Mike Jumper

Constructor Summary
UserMapping()
           
 
Method Summary
 void addAuthorization(Authorization authorization)
          Adds the given authorization to the user mapping.
 Authorization getAuthorization(String username)
          Returns the authorization corresponding to the user having the given username, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserMapping

public UserMapping()
Method Detail

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.