Wt  4.10.4
Public Member Functions | Public Attributes | List of all members
Wt::Auth::Saml::Assertion Struct Reference

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< Subjectsubject
 The optional subject.
 
std::vector< Attributeattributes
 The attributes.
 

Detailed Description

Represents a SAML assertion (saml-core-2.0-os, section 2.3.3)

Member Function Documentation

◆ attributeValue()

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.

◆ attributeValues()

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.