/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* @file saml/SAMLConfig.h
*
- * Library configuration
+ * Library configuration.
*/
#ifndef __saml_config_h__
#include <saml/base.h>
-#include <xmltooling/PluginManager.h>
-#include <xmltooling/XMLToolingConfig.h>
-
#include <string>
+#include <xercesc/dom/DOM.hpp>
+#include <xmltooling/PluginManager.h>
/**
* @namespace opensaml
{
MAKE_NONCOPYABLE(SAMLConfig);
public:
- virtual ~SAMLConfig() {}
+ virtual ~SAMLConfig();
/**
* Returns the global configuration object for the library.
/**
* Returns the global ArtifactMap instance.
*
- * @return global ArtifactMap or NULL
+ * @return global ArtifactMap or nullptr
*/
- ArtifactMap* getArtifactMap() const {
- return m_artifactMap;
- }
+ ArtifactMap* getArtifactMap() const;
/**
* Generate random information using the underlying security library
virtual XMLCh* generateIdentifier()=0;
/**
+ * @deprecated
* Generate the SHA-1 hash of a string
*
* @param s NULL-terminated string to hash
virtual std::string hashSHA1(const char* s, bool toHex=false)=0;
/** Manages factories for MessageDecoder plugins. */
- xmltooling::PluginManager<MessageDecoder,const xercesc::DOMElement*> MessageDecoderManager;
+ xmltooling::PluginManager< MessageDecoder,std::string,std::pair<const xercesc::DOMElement*,const XMLCh*> > MessageDecoderManager;
/** Manages factories for MessageEncoder plugins. */
- xmltooling::PluginManager<MessageEncoder,const xercesc::DOMElement*> MessageEncoderManager;
+ xmltooling::PluginManager< MessageEncoder,std::string,std::pair<const xercesc::DOMElement*,const XMLCh*> > MessageEncoderManager;
/** Manages factories for SAMLArtifact plugins. */
- xmltooling::PluginManager<SAMLArtifact,const char*> SAMLArtifactManager;
+ xmltooling::PluginManager<SAMLArtifact,std::string,const char*> SAMLArtifactManager;
/** Manages factories for SecurityPolicyRule plugins. */
- xmltooling::PluginManager<SecurityPolicyRule,const xercesc::DOMElement*> SecurityPolicyRuleManager;
+ xmltooling::PluginManager<SecurityPolicyRule,std::string,const xercesc::DOMElement*> SecurityPolicyRuleManager;
/** Manages factories for MetadataProvider plugins. */
- xmltooling::PluginManager<saml2md::MetadataProvider,const xercesc::DOMElement*> MetadataProviderManager;
+ xmltooling::PluginManager<saml2md::MetadataProvider,std::string,const xercesc::DOMElement*> MetadataProviderManager;
/** Manages factories for MetadataFilter plugins. */
- xmltooling::PluginManager<saml2md::MetadataFilter,const xercesc::DOMElement*> MetadataFilterManager;
+ xmltooling::PluginManager<saml2md::MetadataFilter,std::string,const xercesc::DOMElement*> MetadataFilterManager;
protected:
- SAMLConfig() : m_artifactMap(NULL) {}
+ SAMLConfig();
/** Global ArtifactMap instance for use by artifact-related functions. */
ArtifactMap* m_artifactMap;