#include <shibsp/attribute/resolver/AttributeResolver.h>
Public Member Functions | |
| virtual ResolutionContext * | createResolutionContext (const Application &application, const opensaml::saml2md::EntityDescriptor *issuer, const XMLCh *protocol, const opensaml::saml2::NameID *nameid=nullptr, const XMLCh *authncontext_class=nullptr, const XMLCh *authncontext_decl=nullptr, const std::vector< const opensaml::Assertion * > *tokens=nullptr, const std::vector< Attribute * > *attributes=nullptr) const |
| virtual ResolutionContext * | createResolutionContext (const Application &application, const xmltooling::GenericRequest *request, const opensaml::saml2md::EntityDescriptor *issuer, const XMLCh *protocol, const opensaml::saml2::NameID *nameid=nullptr, const XMLCh *authncontext_class=nullptr, const XMLCh *authncontext_decl=nullptr, const std::vector< const opensaml::Assertion * > *tokens=nullptr, const std::vector< Attribute * > *attributes=nullptr) const |
| Creates a ResolutionContext based on session bootstrap material. | |
| virtual ResolutionContext * | createResolutionContext (const Application &application, const Session &session) const =0 |
| Creates a ResolutionContext for an existing Session. | |
| virtual void | resolveAttributes (ResolutionContext &ctx) const =0 |
| Resolves attributes for a given subject and returns them in the supplied context. | |
| virtual void | getAttributeIds (std::vector< std::string > &attributes) const =0 |
| Populates an array with the set of Attribute IDs that might be generated. | |
| virtual ResolutionContext* shibsp::AttributeResolver::createResolutionContext | ( | const Application & | application, | |
| const Session & | session | |||
| ) | const [pure virtual] |
Creates a ResolutionContext for an existing Session.
| application | reference to Application that owns the Session | |
| session | reference to Session |
| virtual ResolutionContext* shibsp::AttributeResolver::createResolutionContext | ( | const Application & | application, | |
| const xmltooling::GenericRequest * | request, | |||
| const opensaml::saml2md::EntityDescriptor * | issuer, | |||
| const XMLCh * | protocol, | |||
| const opensaml::saml2::NameID * | nameid = nullptr, |
|||
| const XMLCh * | authncontext_class = nullptr, |
|||
| const XMLCh * | authncontext_decl = nullptr, |
|||
| const std::vector< const opensaml::Assertion * > * | tokens = nullptr, |
|||
| const std::vector< Attribute * > * | attributes = nullptr | |||
| ) | const [virtual] |
Creates a ResolutionContext based on session bootstrap material.
This enables resolution to occur ahead of session creation so that Attributes can be supplied while creating the session.
| application | reference to Application that owns the eventual Session | |
| request | request triggering the resolution, if any | |
| issuer | issuing metadata of assertion issuer, if known | |
| protocol | protocol used to establish Session | |
| nameid | principal identifier, normalized to SAML 2, if any | |
| authncontext_class | method/category of authentication event, if known | |
| authncontext_decl | specifics of authentication event, if known | |
| tokens | assertions initiating the Session, if any | |
| attributes | array of previously resolved attributes, if any |
| virtual ResolutionContext* shibsp::AttributeResolver::createResolutionContext | ( | const Application & | application, | |
| const opensaml::saml2md::EntityDescriptor * | issuer, | |||
| const XMLCh * | protocol, | |||
| const opensaml::saml2::NameID * | nameid = nullptr, |
|||
| const XMLCh * | authncontext_class = nullptr, |
|||
| const XMLCh * | authncontext_decl = nullptr, |
|||
| const std::vector< const opensaml::Assertion * > * | tokens = nullptr, |
|||
| const std::vector< Attribute * > * | attributes = nullptr | |||
| ) | const [virtual] |
This enables resolution to occur ahead of session creation so that Attributes can be supplied while creating the session.
| application | reference to Application that owns the eventual Session | |
| issuer | issuing metadata of assertion issuer, if known | |
| protocol | protocol used to establish Session | |
| nameid | principal identifier, normalized to SAML 2, if any | |
| authncontext_class | method/category of authentication event, if known | |
| authncontext_decl | specifics of authentication event, if known | |
| tokens | assertions initiating the Session, if any | |
| attributes | array of previously resolved attributes, if any |
| virtual void shibsp::AttributeResolver::getAttributeIds | ( | std::vector< std::string > & | attributes | ) | const [pure virtual] |
Populates an array with the set of Attribute IDs that might be generated.
| attributes | array to populate |
| virtual void shibsp::AttributeResolver::resolveAttributes | ( | ResolutionContext & | ctx | ) | const [pure virtual] |
Resolves attributes for a given subject and returns them in the supplied context.
| ctx | resolution context to use to resolve attributes |
| AttributeResolutionException | thrown if there is a problem resolving the attributes for the subject |
1.4.7