GUACAMOLE-524: Fixed Javadoc and removed unnecessary methods

This commit is contained in:
Jared Frees
2018-06-13 10:34:41 -04:00
parent 4791adaa46
commit 58c8f3e111
2 changed files with 1 additions and 44 deletions

View File

@@ -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 {

View File

@@ -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;