#include <saml/saml2/metadata/ChainingMetadataProvider.h>
Public Member Functions | |
ChainingMetadataProvider (const xercesc::DOMElement *e=NULL) | |
Constructor. | |
virtual | ~ChainingMetadataProvider () |
Destructor will delete any embedded engines. | |
void | addMetadataProvider (MetadataProvider *newProvider) |
Adds a provider for future calls. | |
MetadataProvider * | removeMetadataProvider (MetadataProvider *oldProvider) |
Removes a provider. | |
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. | |
const EntitiesDescriptor * | getEntitiesDescriptor (const char *name, bool requireValidMetadata=true) const |
Gets the metadata for a given group of entities. | |
std::pair< const EntityDescriptor *, const RoleDescriptor * > | getEntityDescriptor (const Criteria &criteria) const |
Gets entity metadata based on supplied criteria. | |
void | onEvent (const ObservableMetadataProvider &provider) const |
Called when a provider signals an event has occured. | |
const xmltooling::Credential * | resolve (const xmltooling::CredentialCriteria *criteria=NULL) const |
std::vector< const xmltooling::Credential * > ::size_type | resolve (std::vector< const xmltooling::Credential * > &results, const xmltooling::CredentialCriteria *criteria=NULL) const |
opensaml::saml2md::ChainingMetadataProvider::ChainingMetadataProvider | ( | const xercesc::DOMElement * | e = NULL |
) |
Constructor.
If a DOM is supplied, the following XML content is supported:
XML namespaces are ignored in the processing of this content.
e | DOM to supply configuration for provider |
void opensaml::saml2md::ChainingMetadataProvider::addMetadataProvider | ( | MetadataProvider * | newProvider | ) | [inline] |
Adds a provider for future calls.
The provider MUST be initialized before adding it.
newProvider | provider to add |
MetadataProvider* opensaml::saml2md::ChainingMetadataProvider::removeMetadataProvider | ( | MetadataProvider * | oldProvider | ) | [inline] |
Removes a provider.
The caller must delete the provider if necessary.
oldProvider | provider to remove |
void opensaml::saml2md::ChainingMetadataProvider::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.
const xmltooling::XMLObject* opensaml::saml2md::ChainingMetadataProvider::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.
Implements opensaml::saml2md::MetadataProvider.
const EntitiesDescriptor* opensaml::saml2md::ChainingMetadataProvider::getEntitiesDescriptor | ( | const char * | name, | |
bool | requireValidMetadata = true | |||
) | const [virtual] |
Gets the metadata for a given group of entities.
If a valid group is returned, the resolver will be left in a locked state. The caller MUST unlock the resolver when finished with the group.
name | the name of the group | |
requireValidMetadata | indicates whether the metadata for the group must be valid/current |
Implements opensaml::saml2md::MetadataProvider.
std::pair<const EntityDescriptor*,const RoleDescriptor*> opensaml::saml2md::ChainingMetadataProvider::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 |
Implements opensaml::saml2md::MetadataProvider.
void opensaml::saml2md::ChainingMetadataProvider::onEvent | ( | const ObservableMetadataProvider & | provider | ) | const [virtual] |
Called when a provider signals an event has occured.
The provider is already locked.
provider | the provider being observed |
Implements opensaml::saml2md::ObservableMetadataProvider::Observer.