AttributeExtractor* extractor = application.getAttributeExtractor();
if (extractor) {
Locker extlocker(extractor);
- if (entity) {\r
- pair<bool,const char*> prefix = application.getString("metadataAttributePrefix");\r
- if (prefix.first) {\r
- m_log.debug("extracting metadata-derived attributes...");\r
- try {\r
- extractor->extractAttributes(application, issuer, *entity, resolvedAttributes);\r
- for (vector<Attribute*>::iterator a = resolvedAttributes.begin(); a != resolvedAttributes.end(); ++a) {\r
- vector<string>& ids = (*a)->getAliases();\r
- for (vector<string>::iterator id = ids.begin(); id != ids.end(); ++id)\r
- *id = prefix.second + *id;\r
- }\r
- }\r
- catch (exception& ex) {\r
- m_log.error("caught exception extracting attributes: %s", ex.what());\r
- }\r
- }\r
+ if (entity) {
+ pair<bool,const char*> prefix = application.getString("metadataAttributePrefix");
+ if (prefix.first) {
+ m_log.debug("extracting metadata-derived attributes...");
+ try {
+ extractor->extractAttributes(application, issuer, *entity, resolvedAttributes);
+ for (vector<Attribute*>::iterator a = resolvedAttributes.begin(); a != resolvedAttributes.end(); ++a) {
+ vector<string>& ids = (*a)->getAliases();
+ for (vector<string>::iterator id = ids.begin(); id != ids.end(); ++id)
+ *id = prefix.second + *id;
+ }
+ }
+ catch (exception& ex) {
+ m_log.error("caught exception extracting attributes: %s", ex.what());
+ }
+ }
}
m_log.debug("extracting pushed attributes...");
if (v1nameid) {