An Attribute whose values are simple strings. More...
#include <shibsp/attribute/SimpleAttribute.h>


Public Member Functions | |
| SimpleAttribute (const std::vector< std::string > &ids) | |
| Constructor. | |
| SimpleAttribute (DDF &in) | |
| Constructs based on a remoted SimpleAttribute. | |
| std::vector< std::string > & | getValues () |
| Returns the set of values encoded as UTF-8 strings. | |
| void | clearSerializedValues () |
| Informs the Attribute that values have changed and any serializations must be cleared. | |
| DDF | marshall () const |
| Marshalls an Attribute for remoting. | |
An Attribute whose values are simple strings.
| shibsp::SimpleAttribute::SimpleAttribute | ( | const std::vector< std::string > & | ids | ) |
Constructor.
| ids | array with primary identifier in first position, followed by any aliases |
| shibsp::SimpleAttribute::SimpleAttribute | ( | DDF & | in | ) |
Constructs based on a remoted SimpleAttribute.
| in | input object containing marshalled SimpleAttribute |
| std::vector<std::string>& shibsp::SimpleAttribute::getValues | ( | ) |
Returns the set of values encoded as UTF-8 strings.
For simple values, the serialized form is just the actual string, so the value array can be directly manipulated.
| DDF shibsp::SimpleAttribute::marshall | ( | ) | const [virtual] |
Marshalls an Attribute for remoting.
This allows Attribute objects to be communicated across process boundaries without excess XML parsing. The DDF returned must be a struct containing a single list member named with the Attribute's "id". The name of the struct should contain the registered name of the Attribute implementation.
Reimplemented from shibsp::Attribute.
1.7.1