org.glyptodon.guacamole.net.auth
public interface User
| Modifier and Type | Method and Description |
|---|---|
void |
addPermission(Permission permission)
Adds the specified permission to this user.
|
String |
getPassword()
Returns this user's password.
|
Set<Permission> |
getPermissions()
Lists all permissions given to this user.
|
String |
getUsername()
Returns the name of this user, which must be unique across all users.
|
boolean |
hasPermission(Permission permission)
Tests whether this user has the specified permission.
|
void |
removePermission(Permission permission)
Removes the specified permission from this specified user.
|
void |
setPassword(String password)
Sets this user's password.
|
void |
setUsername(String username)
Sets the name of this user, which must be unique across all users.
|
String getUsername()
void setUsername(String username)
username - The name of this user.String getPassword()
void setPassword(String password)
password - The password to set.Set<Permission> getPermissions() throws org.glyptodon.guacamole.GuacamoleException
org.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving
permissions, or if reading all permissions
is not allowed.boolean hasPermission(Permission permission) throws org.glyptodon.guacamole.GuacamoleException
permission - The permission to check.org.glyptodon.guacamole.GuacamoleException - If an error occurs while checking permissions,
or if permissions cannot be checked due to
lack of permissions to do so.void addPermission(Permission permission) throws org.glyptodon.guacamole.GuacamoleException
permission - The permission to add.org.glyptodon.guacamole.GuacamoleException - If an error occurs while adding the
permission. or if permission to add
permissions is denied.void removePermission(Permission permission) throws org.glyptodon.guacamole.GuacamoleException
permission - The permission to remove.org.glyptodon.guacamole.GuacamoleException - If an error occurs while removing the
permission. or if permission to remove
permissions is denied.Copyright © 2014. All Rights Reserved.