/*
* Copyright 2001-2007 Internet2
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
/**
* @file saml/saml2/metadata/DynamicMetadataProvider.h
- *
+ *
* Simple implementation of a dynamic caching MetadataProvider.
*/
public:
/**
* Constructor.
- *
+ *
* @param e DOM to supply configuration for provider
*/
DynamicMetadataProvider(const xercesc::DOMElement* e=NULL);
/** Controls XML schema validation. */
bool m_validate;
+ /** Caps the allowable cache duration of a metadata instance. */
+ time_t m_maxCacheDuration;
+
/**
- * Resolves an entityID into a metadata instance for that entity.
- *
- * @param entityID entity ID to resolve
+ * Resolves a metadata instance using the supplied criteria.
+ *
+ * @param criteria lookup criteria
* @return a valid metadata instance
*/
- virtual EntityDescriptor* resolve(const char* entityID) const;
+ virtual EntityDescriptor* resolve(const Criteria& criteria) const;
private:
mutable xmltooling::RWLock* m_lock;
};
-
+
};
};