org.glyptodon.guacamole.net.auth.simple
public abstract class SimpleAuthenticationProvider extends Object implements AuthenticationProvider
| Constructor and Description |
|---|
SimpleAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract Map<String,org.glyptodon.guacamole.protocol.GuacamoleConfiguration> |
getAuthorizedConfigurations(Credentials credentials)
Given an arbitrary credentials object, returns a Map containing all
configurations authorized by those credentials.
|
UserContext |
getUserContext(Credentials credentials)
Returns the UserContext of the user authorized by the given credentials.
|
UserContext |
updateUserContext(UserContext context,
Credentials credentials)
Returns a new or updated UserContext for the user authorized by the
give credentials and having the given existing UserContext.
|
public abstract Map<String,org.glyptodon.guacamole.protocol.GuacamoleConfiguration> getAuthorizedConfigurations(Credentials credentials) throws org.glyptodon.guacamole.GuacamoleException
credentials - The credentials to use to retrieve authorized
configurations.org.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving
configurations.public UserContext getUserContext(Credentials credentials) throws org.glyptodon.guacamole.GuacamoleException
AuthenticationProvidergetUserContext in interface AuthenticationProvidercredentials - The credentials to use to retrieve the environment.org.glyptodon.guacamole.GuacamoleException - If an error occurs while creating the
UserContext.public UserContext updateUserContext(UserContext context, Credentials credentials) throws org.glyptodon.guacamole.GuacamoleException
AuthenticationProviderupdateUserContext in interface AuthenticationProvidercontext - The existing UserContext belonging to the user in
question.credentials - The credentials to use to retrieve or update the
environment.org.glyptodon.guacamole.GuacamoleException - If an error occurs while updating the
UserContext.Copyright © 2014. All Rights Reserved.