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

Public Member Functions | |
| void | emitChangeEvent () const |
| Convenience method for notifying every registered Observer of an event. | |
| std::pair< const EntityDescriptor *, const RoleDescriptor * > | getEntityDescriptor (const Criteria &criteria) const |
| Gets entity metadata based on supplied criteria. | |
| const EntitiesDescriptor * | getEntitiesDescriptor (const char *name, bool requireValidMetadata=true) const |
| Gets the metadata for a given group of entities. | |
| 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 |
Protected Member Functions | |
| AbstractMetadataProvider (const xercesc::DOMElement *e=NULL) | |
| Constructor. | |
| virtual void | index (EntityDescriptor *site, time_t validUntil, bool replace=false) const |
| Loads an entity into the cache for faster lookup. | |
| virtual void | index (EntitiesDescriptor *group, time_t validUntil) const |
| Loads a group of entities into the cache for faster lookup. | |
| virtual void | clearDescriptorIndex (bool freeSites=false) |
| Clear the cache of known entities and groups. | |
Protected Attributes | |
| xmltooling::KeyInfoResolver * | m_resolver |
| Embedded KeyInfoResolver instance. | |
| opensaml::saml2md::AbstractMetadataProvider::AbstractMetadataProvider | ( | const xercesc::DOMElement * | e = NULL |
) | [protected] |
Constructor.
If a DOM is supplied, a set of default logic will be used to identify and build a KeyInfoResolver plugin and install it into the provider.
The following XML content is supported:
XML namespaces are ignored in the processing of these elements.
| e | DOM to supply configuration for provider |
| std::pair<const EntityDescriptor*,const RoleDescriptor*> opensaml::saml2md::AbstractMetadataProvider::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.
Reimplemented in opensaml::saml2md::DynamicMetadataProvider.
| const EntitiesDescriptor* opensaml::saml2md::AbstractMetadataProvider::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.
| virtual void opensaml::saml2md::AbstractMetadataProvider::index | ( | EntityDescriptor * | site, | |
| time_t | validUntil, | |||
| bool | replace = false | |||
| ) | const [protected, virtual] |
Loads an entity into the cache for faster lookup.
This includes processing known reverse lookup strategies for artifacts.
| site | entity definition | |
| validUntil | maximum expiration time of the entity definition | |
| replace | true iff existing entries for the same entity should be cleared/replaced |
| virtual void opensaml::saml2md::AbstractMetadataProvider::index | ( | EntitiesDescriptor * | group, | |
| time_t | validUntil | |||
| ) | const [protected, virtual] |
Loads a group of entities into the cache for faster lookup.
| group | group definition | |
| validUntil | maximum expiration time of the group definition |
| virtual void opensaml::saml2md::AbstractMetadataProvider::clearDescriptorIndex | ( | bool | freeSites = false |
) | [protected, virtual] |
Clear the cache of known entities and groups.
| freeSites | true iff the objects cached in the site map should be freed. |
xmltooling::KeyInfoResolver* opensaml::saml2md::AbstractMetadataProvider::m_resolver [protected] |
Embedded KeyInfoResolver instance.
1.5.6