mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-96: Document semantics of voluntary attribute storage and guaranteed sanitization.
This commit is contained in:
@@ -95,8 +95,17 @@ public interface Connection extends Identifiable, Connectable {
|
||||
|
||||
/**
|
||||
* Sets the given attributes. If an attribute within the map is not
|
||||
* supported, it will simply be dropped. Any attributes not within the
|
||||
* given map will be left untouched.
|
||||
* supported, it will simply be dropped. Any attributes not within the given
|
||||
* map will be left untouched. Attributes which are not declared within
|
||||
* getConnectionAttributes() of the associated UserContext MUST NOT be
|
||||
* submitted, but other extensions may manipulate the declared attributes
|
||||
* through decorate() and redecorate().
|
||||
*
|
||||
* Implementations may optionally allow storage of unsupported attributes.
|
||||
* Extensions which rely on other extensions to store their attribute
|
||||
* values should verify that such storage is supported by first testing
|
||||
* that the attribute value is retrievable via getAttributes() after being
|
||||
* set.
|
||||
*
|
||||
* @param attributes
|
||||
* A map of all attribute identifiers to their corresponding values.
|
||||
|
@@ -137,8 +137,17 @@ public interface ConnectionGroup extends Identifiable, Connectable {
|
||||
|
||||
/**
|
||||
* Sets the given attributes. If an attribute within the map is not
|
||||
* supported, it will simply be dropped. Any attributes not within the
|
||||
* given map will be left untouched.
|
||||
* supported, it will simply be dropped. Any attributes not within the given
|
||||
* map will be left untouched. Attributes which are not declared within
|
||||
* getConnectionGroupAttributes() of the associated UserContext MUST NOT be
|
||||
* submitted, but other extensions may manipulate the declared attributes
|
||||
* through decorate() and redecorate().
|
||||
*
|
||||
* Implementations may optionally allow storage of unsupported attributes.
|
||||
* Extensions which rely on other extensions to store their attribute
|
||||
* values should verify that such storage is supported by first testing
|
||||
* that the attribute value is retrievable via getAttributes() after being
|
||||
* set.
|
||||
*
|
||||
* @param attributes
|
||||
* A map of all attribute identifiers to their corresponding values.
|
||||
|
@@ -107,7 +107,16 @@ public interface SharingProfile extends Identifiable {
|
||||
/**
|
||||
* Sets the given attributes. If an attribute within the map is not
|
||||
* supported, it will simply be dropped. Any attributes not within the
|
||||
* given map will be left untouched.
|
||||
* given map will be left untouched. Attributes which are not declared
|
||||
* within getSharingProfileAttributes() of the associated UserContext MUST
|
||||
* NOT be submitted, but other extensions may manipulate the declared
|
||||
* attributes through decorate() and redecorate().
|
||||
*
|
||||
* Implementations may optionally allow storage of unsupported attributes.
|
||||
* Extensions which rely on other extensions to store their attribute
|
||||
* values should verify that such storage is supported by first testing
|
||||
* that the attribute value is retrievable via getAttributes() after being
|
||||
* set.
|
||||
*
|
||||
* @param attributes
|
||||
* A map of all attribute identifiers to their corresponding values.
|
||||
|
@@ -94,8 +94,17 @@ public interface User extends Identifiable {
|
||||
|
||||
/**
|
||||
* Sets the given attributes. If an attribute within the map is not
|
||||
* supported, it will simply be dropped. Any attributes not within the
|
||||
* given map will be left untouched.
|
||||
* supported, it will simply be dropped. Any attributes not within the given
|
||||
* map will be left untouched. Attributes which are not declared within
|
||||
* getUserAttributes() of the associated UserContext MUST NOT be submitted,
|
||||
* but other extensions may manipulate the declared attributes through
|
||||
* decorate() and redecorate().
|
||||
*
|
||||
* Implementations may optionally allow storage of unsupported attributes.
|
||||
* Extensions which rely on other extensions to store their attribute
|
||||
* values should verify that such storage is supported by first testing
|
||||
* that the attribute value is retrievable via getAttributes() after being
|
||||
* set.
|
||||
*
|
||||
* @param attributes
|
||||
* A map of all attribute identifiers to their corresponding values.
|
||||
|
Reference in New Issue
Block a user