|
shibboleth-2.4.3
|
An Attribute whose values are arbitrary structures. More...
#include <shibsp/attribute/ExtensibleAttribute.h>


Public Member Functions | |
| ExtensibleAttribute (const std::vector< std::string > &ids, const char *formatter) | |
| Constructor. | |
| ExtensibleAttribute (DDF &in) | |
| Constructs based on a remoted ExtensibleAttribute. | |
| DDF | getValues () |
| Returns the set of values in a DDF list. | |
| size_t | valueCount () const |
| Returns the number of values. | |
| void | clearSerializedValues () |
| Informs the Attribute that values have changed and any serializations must be cleared. | |
| const char * | getString (size_t index) const |
| Gets the string equivalent of the value at the specified position (starting from zero). | |
| const char * | getScope (size_t index) const |
| Gets the "scope" of the value at the specified position (starting from zero). | |
| void | removeValue (size_t index) |
| Removes the value at the specified position (starting from zero). | |
| const std::vector< std::string > & | getSerializedValues () const |
| Returns serialized Attribute values encoded as UTF-8 strings. | |
| DDF | marshall () const |
| Marshalls an Attribute for remoting. | |
An Attribute whose values are arbitrary structures.
| shibsp::ExtensibleAttribute::ExtensibleAttribute | ( | const std::vector< std::string > & | ids, |
| const char * | formatter | ||
| ) |
Constructor.
| ids | array with primary identifier in first position, followed by any aliases |
| formatter | template for serialization of values |
Constructs based on a remoted ExtensibleAttribute.
| in | input object containing marshalled ExtensibleAttribute |
| const char* shibsp::ExtensibleAttribute::getScope | ( | size_t | index | ) | const [virtual] |
Gets the "scope" of the value at the specified position (starting from zero).
| index | position of value |
Reimplemented from shibsp::Attribute.
| const std::vector<std::string>& shibsp::ExtensibleAttribute::getSerializedValues | ( | ) | const [virtual] |
Returns serialized Attribute values encoded as UTF-8 strings.
Reimplemented from shibsp::Attribute.
| const char* shibsp::ExtensibleAttribute::getString | ( | size_t | index | ) | const [virtual] |
Gets the string equivalent of the value at the specified position (starting from zero).
| index | position of value |
Reimplemented from shibsp::Attribute.
Returns the set of values in a DDF list.
| DDF shibsp::ExtensibleAttribute::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.
| void shibsp::ExtensibleAttribute::removeValue | ( | size_t | index | ) | [virtual] |
Removes the value at the specified position (starting from zero).
| index | position of value to remove |
Reimplemented from shibsp::Attribute.
| size_t shibsp::ExtensibleAttribute::valueCount | ( | ) | const [virtual] |