public abstract class SimpleAuthenticationProvider extends Object implements AuthenticationProvider
Constructor and Description |
---|
SimpleAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
abstract Map<String,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,GuacamoleConfiguration> getAuthorizedConfigurations(Credentials credentials) throws GuacamoleException
credentials
- The credentials to use to retrieve authorized
configurations.GuacamoleException
- If an error occurs while retrieving
configurations.public UserContext getUserContext(Credentials credentials) throws GuacamoleException
AuthenticationProvider
getUserContext
in interface AuthenticationProvider
credentials
- The credentials to use to retrieve the environment.GuacamoleException
- If an error occurs while creating the
UserContext.public UserContext updateUserContext(UserContext context, Credentials credentials) throws GuacamoleException
AuthenticationProvider
updateUserContext
in interface AuthenticationProvider
context
- The existing UserContext belonging to the user in
question.credentials
- The credentials to use to retrieve or update the
environment.GuacamoleException
- If an error occurs while updating the
UserContext.Copyright © 2013. All rights reserved.