public abstract class SimpleAuthenticationProvider extends Object implements AuthenticationProvider
| Constructor and Description |
|---|
SimpleAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticatedUser |
authenticateUser(Credentials credentials)
Returns an AuthenticatedUser representing the user authenticated by the
given credentials, if any.
|
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(AuthenticatedUser authenticatedUser)
Returns the UserContext of the user authenticated by the given
credentials.
|
AuthenticatedUser |
updateAuthenticatedUser(AuthenticatedUser authenticatedUser,
Credentials credentials)
Returns a new or updated AuthenticatedUser for the given credentials
already having produced the given AuthenticatedUser.
|
UserContext |
updateUserContext(UserContext context,
AuthenticatedUser authorizedUser)
Returns a new or updated UserContext for the given AuthenticatedUser
already having the given UserContext.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdentifierpublic 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 AuthenticatedUser authenticateUser(Credentials credentials) throws org.glyptodon.guacamole.GuacamoleException
AuthenticationProviderauthenticateUser in interface AuthenticationProvidercredentials - The credentials to use for authentication.org.glyptodon.guacamole.GuacamoleException - If an error occurs while authenticating the user, or if access is
temporarily, permanently, or conditionally denied, such as if the
supplied credentials are insufficient or invalid.public UserContext getUserContext(AuthenticatedUser authenticatedUser) throws org.glyptodon.guacamole.GuacamoleException
AuthenticationProvidergetUserContext in interface AuthenticationProviderauthenticatedUser - An AuthenticatedUser object representing the user authenticated by
an arbitrary set of credentials. The AuthenticatedUser may come from
this AuthenticationProvider or any other installed
AuthenticationProvider.org.glyptodon.guacamole.GuacamoleException - If an error occurs while creating the UserContext.public AuthenticatedUser updateAuthenticatedUser(AuthenticatedUser authenticatedUser, Credentials credentials) throws org.glyptodon.guacamole.GuacamoleException
AuthenticationProviderupdateAuthenticatedUser in interface AuthenticationProviderauthenticatedUser - An AuthenticatedUser object representing the user authenticated by
an arbitrary set of credentials. The AuthenticatedUser may come from
this AuthenticationProvider or any other installed
AuthenticationProvider.credentials - The credentials to use for authentication.org.glyptodon.guacamole.GuacamoleException - If an error occurs while updating the AuthenticatedUser.public UserContext updateUserContext(UserContext context, AuthenticatedUser authorizedUser) throws org.glyptodon.guacamole.GuacamoleException
AuthenticationProviderupdateUserContext in interface AuthenticationProvidercontext - The existing UserContext belonging to the user in question.authorizedUser - An AuthenticatedUser object representing the user authenticated by
an arbitrary set of credentials. The AuthenticatedUser may come from
this AuthenticationProvider or any other installed
AuthenticationProvider.org.glyptodon.guacamole.GuacamoleException - If an error occurs while updating the UserContext.Copyright © 2015. All rights reserved.