mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-524: Fixed Javadoc and removed unnecessary methods
This commit is contained in:
@@ -269,7 +269,7 @@ public class AuthenticationProviderService {
|
||||
* If an error occurs while searching for the user attributes.
|
||||
*
|
||||
* @throws GuacamoleException
|
||||
* If an error occurs retrieving the user DN.
|
||||
* If an error occurs retrieving the user DN or the attributes.
|
||||
*/
|
||||
private Map<String, String> getLDAPAttributes(LDAPConnection ldapConnection,
|
||||
String username) throws GuacamoleException {
|
||||
|
@@ -71,49 +71,6 @@ public class AuthenticatedUser extends AbstractAuthenticatedUser {
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the Map of attributes to the current set, without completely
|
||||
* replacing the existing set. However, if duplicate keys exist the new
|
||||
* values will replace any existing ones.
|
||||
*
|
||||
* @param attributes
|
||||
* A Map of attributes to add to the existing attributes, without
|
||||
* completely overwriting them.
|
||||
*/
|
||||
public void addAttributes(Map<String, String> attributes) {
|
||||
this.attributes.putAll(attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a single attribute value from the map of arbitrary attributes
|
||||
* stored in this AuthenticatedUser object.
|
||||
*
|
||||
* @param key
|
||||
* The key of the attribute to retrieve.
|
||||
*
|
||||
* @return
|
||||
* The value of the attribute with the specified key.
|
||||
*/
|
||||
public String getAttribute(String key) {
|
||||
return attributes.get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the attribute of the given key to the given value, either adding
|
||||
* a new value if the specified key does not exist, or replacing an existing
|
||||
* value.
|
||||
*
|
||||
* @param key
|
||||
* The key name of the attribute to set (or overwrite, if it
|
||||
* already exists).
|
||||
*
|
||||
* @param value
|
||||
* The value of the attribute to set or overwrite.
|
||||
*/
|
||||
public void setAttribute(String key, String value) {
|
||||
attributes.put(key, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AuthenticationProvider getAuthenticationProvider() {
|
||||
return authProvider;
|
||||
|
Reference in New Issue
Block a user