public abstract class SimpleAuthenticationProvider extends AbstractAuthenticationProvider
| 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.apache.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.
|
decorate, getResource, redecorate, shutdown, updateAuthenticatedUser, updateUserContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdentifierpublic abstract Map<String,org.apache.guacamole.protocol.GuacamoleConfiguration> getAuthorizedConfigurations(Credentials credentials) throws org.apache.guacamole.GuacamoleException
credentials - The credentials to use to retrieve authorized
configurations.org.apache.guacamole.GuacamoleException - If an error occurs while retrieving
configurations.public AuthenticatedUser authenticateUser(Credentials credentials) throws org.apache.guacamole.GuacamoleException
AbstractAuthenticationProviderThis implementation performs no authentication whatsoever, ignoring
the provided credentials and simply returning null. Any
authentication attempt will thus fall through to other
AuthenticationProvider implementations, perhaps within other
installed extensions, with this AuthenticationProvider making no
claim regarding the user's identity nor whether the user should be
allowed or disallowed from accessing Guacamole. Implementations that wish
to authenticate users should override this function.
authenticateUser in interface AuthenticationProviderauthenticateUser in class AbstractAuthenticationProvidercredentials - The credentials to use for authentication.org.apache.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.apache.guacamole.GuacamoleException
AbstractAuthenticationProviderThis implementation simply returns null, effectively allowing
authentication to continue but refusing to provide data for the given
user. Implementations that wish to veto the authentication results of
other AuthenticationProvider implementations or provide data for
authenticated users should override this function.
getUserContext in interface AuthenticationProvidergetUserContext in class AbstractAuthenticationProviderauthenticatedUser - 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.apache.guacamole.GuacamoleException - If an error occurs while creating the UserContext.Copyright © 2020. All rights reserved.