shibsp::SimpleAttribute Class Reference

An Attribute whose values are simple strings. More...

#include <shibsp/attribute/SimpleAttribute.h>

Inheritance diagram for shibsp::SimpleAttribute:
shibsp::Attribute

List of all members.

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.

Detailed Description

An Attribute whose values are simple strings.


Constructor & Destructor Documentation

shibsp::SimpleAttribute::SimpleAttribute ( const std::vector< std::string > &  ids  ) 

Constructor.

Parameters:
ids array with primary identifier in first position, followed by any aliases
shibsp::SimpleAttribute::SimpleAttribute ( DDF in  ) 

Constructs based on a remoted SimpleAttribute.

Parameters:
in input object containing marshalled SimpleAttribute

Member Function Documentation

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.

Returns:
a mutable vector of the values
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.


The documentation for this class was generated from the following file:

Generated on 15 Dec 2020 for shibboleth-3.2.0 by  doxygen 1.6.1