opensaml::saml2md::DynamicMetadataProvider Class Reference

Simple implementation of a dynamic, caching MetadataProvider. More...

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

Inheritance diagram for opensaml::saml2md::DynamicMetadataProvider:

opensaml::saml2md::AbstractMetadataProvider opensaml::saml2md::ObservableMetadataProvider opensaml::saml2md::MetadataProvider List of all members.

Public Member Functions

 DynamicMetadataProvider (const xercesc::DOMElement *e=nullptr)
 Constructor.
void init ()
 Should be called after instantiating provider and adding filters, but before performing any lookup operations.
xmltooling::Lockable * lock ()
void unlock ()
const char * getId () const
 Returns an identifier for the provider for logging/status purposes.
const xmltooling::XMLObject * getMetadata () const
 Gets the entire metadata tree, after the registered filter has been applied.
std::pair< const EntityDescriptor *,
const RoleDescriptor * > 
getEntityDescriptor (const Criteria &criteria) const

Protected Member Functions

virtual EntityDescriptor * resolve (const Criteria &criteria) const
 Resolves a metadata instance using the supplied criteria.

Protected Attributes

bool m_validate
 Controls XML schema validation.

Detailed Description

Simple implementation of a dynamic, caching MetadataProvider.


Constructor & Destructor Documentation

opensaml::saml2md::DynamicMetadataProvider::DynamicMetadataProvider ( const xercesc::DOMElement *  e = nullptr  ) 

Constructor.

Parameters:
e DOM to supply configuration for provider


Member Function Documentation

const char* opensaml::saml2md::DynamicMetadataProvider::getId (  )  const [virtual]

Returns an identifier for the provider for logging/status purposes.

Returns:
an identifier, or null

Reimplemented from opensaml::saml2md::MetadataProvider.

const xmltooling::XMLObject* opensaml::saml2md::DynamicMetadataProvider::getMetadata (  )  const [virtual]

Gets the entire metadata tree, after the registered filter has been applied.

The caller MUST unlock the provider when finished with the data.

Returns:
the entire metadata tree

Implements opensaml::saml2md::MetadataProvider.

void opensaml::saml2md::DynamicMetadataProvider::init (  )  [virtual]

Should be called after instantiating provider and adding filters, but before performing any lookup operations.

Allows the provider to defer initialization processes that are likely to result in exceptions until after the provider is safely created. Providers SHOULD perform as much processing as possible in this method so as to report/log any errors that would affect later processing.

Implements opensaml::saml2md::MetadataProvider.

virtual EntityDescriptor* opensaml::saml2md::DynamicMetadataProvider::resolve ( const Criteria &  criteria  )  const [protected, virtual]

Resolves a metadata instance using the supplied criteria.

Parameters:
criteria lookup criteria
Returns:
a valid metadata instance


The documentation for this class was generated from the following file:
Generated on 20 Mar 2015 for opensaml-2.5.4 by  doxygen 1.4.7