#include <saml/saml2/metadata/DynamicMetadataProvider.h>
Public Member Functions | |
DynamicMetadataProvider (const xercesc::DOMElement *e=NULL) | |
Constructor. | |
xmltooling::Lockable * | lock () |
void | unlock () |
void | init () |
Should be called after instantiating provider and adding filters, but before performing any lookup operations. | |
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 |
Gets entity metadata based on supplied criteria. | |
Protected Member Functions | |
virtual EntityDescriptor * | resolve (const char *entityID) const |
Resolves an entityID into a metadata instance for that entity. | |
Protected Attributes | |
bool | m_validate |
Controls XML schema validation. |
opensaml::saml2md::DynamicMetadataProvider::DynamicMetadataProvider | ( | const xercesc::DOMElement * | e = NULL |
) |
Constructor.
e | DOM to supply configuration for provider |
std::pair<const EntityDescriptor*,const RoleDescriptor*> opensaml::saml2md::DynamicMetadataProvider::getEntityDescriptor | ( | const Criteria & | criteria | ) | const [virtual] |
Gets entity metadata based on supplied criteria.
If a valid entity is returned, the provider will be left in a locked state. The caller MUST unlock the provider when finished with the entity.
criteria | lookup criteria |
Reimplemented from opensaml::saml2md::AbstractMetadataProvider.
const xmltooling::XMLObject* opensaml::saml2md::DynamicMetadataProvider::getMetadata | ( | ) | const [inline, virtual] |
Gets the entire metadata tree, after the registered filter has been applied.
The caller MUST unlock the provider when finished with the data.
Implements opensaml::saml2md::MetadataProvider.
void opensaml::saml2md::DynamicMetadataProvider::init | ( | ) | [inline, 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 char * | entityID | ) | const [protected, virtual] |
Resolves an entityID into a metadata instance for that entity.
entityID | entity ID to resolve |
bool opensaml::saml2md::DynamicMetadataProvider::m_validate [protected] |
Controls XML schema validation.