Wt
4.11.1
|
Represents a SAML assertion (saml-core-2.0-os, section 2.3.3) More...
#include <Wt/Auth/Saml/Assertion.h>
Public Member Functions | |
const std::string * | attributeValue (const std::string &name) const |
Gets a single attribute's value. More... | |
const std::vector< std::string > & | attributeValues (const std::string &name) const |
Gets the values of an attribute. More... | |
Public Attributes | |
std::unique_ptr< Subject > | subject |
The optional subject. | |
std::vector< Attribute > | attributes |
The attributes. | |
Represents a SAML assertion (saml-core-2.0-os, section 2.3.3)
const std::string * Wt::Auth::Saml::Assertion::attributeValue | ( | const std::string & | name | ) | const |
Gets a single attribute's value.
This searches for the attribute with the given name, and returns its value. If the attribute has more than one value the first value is returned. If no attribute with the given name was found (or the attribute has no value), nullptr is returned.
const std::vector< std::string > & Wt::Auth::Saml::Assertion::attributeValues | ( | const std::string & | name | ) | const |
Gets the values of an attribute.
This searches for the attribute with the given name, and returns its values. If no attribute with the given name was found (or the attribute has no value), an empty vector is returned.