opensaml-3.3.1
opensaml::saml2md::DiscoverableMetadataProvider Class Reference

A metadata provider that provides a JSON feed of IdP discovery information. More...

#include <saml/saml2/metadata/DiscoverableMetadataProvider.h>

Inheritance diagram for opensaml::saml2md::DiscoverableMetadataProvider:
Collaboration diagram for opensaml::saml2md::DiscoverableMetadataProvider:

Public Member Functions

virtual std::string getCacheTag () const
 Returns the ETag associated with the cached feed.
virtual void outputFeed (std::ostream &os, bool &first, bool wrapArray=true) const
 Outputs the cached feed.

Protected Member Functions

 DiscoverableMetadataProvider (const xercesc::DOMElement *e=0, bool deprecationSupport=true)
 Constructor.
virtual void generateFeed ()
 Generates a JSON feed of IdP discovery information for the current metadata.

Protected Attributes

std::string m_feed
 Storage for feed.
std::string m_feedTag
 ETag for feed.

Detailed Description

A metadata provider that provides a JSON feed of IdP discovery information.

Constructor & Destructor Documentation

◆ DiscoverableMetadataProvider()

opensaml::saml2md::DiscoverableMetadataProvider::DiscoverableMetadataProvider ( const xercesc::DOMElement * e = 0,
bool deprecationSupport = true )
protected

Constructor.

If a DOM is supplied, the following XML content is supported:

legacyOrgNames
true iff IdPs without a UIInfo extension should be identified using <md:OrganizationDisplayName>
entityAttributes
true iff tags found in <mdattr:EntityAttributes> extensions should be included in the feed
<DiscoveryFilter type="..." matcher="..." >
Zero or more filters of type "Include" or "Exclude" that affect which entities get exposed by the feed. The actual matching is driven by an EntityMatcher plugin identified by the matcher attribute. Other element content will be present to configure that plugin.
Parameters
eDOM to supply configuration for provider
deprecationSupporttrue iff deprecated features and settings should be supported

Member Function Documentation

◆ generateFeed()

virtual void opensaml::saml2md::DiscoverableMetadataProvider::generateFeed ( )
protectedvirtual

Generates a JSON feed of IdP discovery information for the current metadata.

The provider MUST be write-locked.

◆ getCacheTag()

virtual std::string opensaml::saml2md::DiscoverableMetadataProvider::getCacheTag ( ) const
virtual

Returns the ETag associated with the cached feed.

The provider MUST be locked.

Returns
the ETag value for the current feed state

◆ outputFeed()

virtual void opensaml::saml2md::DiscoverableMetadataProvider::outputFeed ( std::ostream & os,
bool & first,
bool wrapArray = true ) const
virtual

Outputs the cached feed.

The provider MUST be locked.

Parameters
osstream to output feed into
firston input, indicates if the feed is first in position, on output will be false if the feed was non-empty
wrapArraytrue iff the feed array should be opened/closed by this provider

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