From: Scott Cantor Date: Sat, 28 Apr 2007 19:45:54 +0000 (+0000) Subject: Enhance plugin manager template with alternate type keys. X-Git-Tag: 2.0-alpha1~36 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=b1bc6cee9765011e91f139f4af302dd1007bb2a1 Enhance plugin manager template with alternate type keys. --- diff --git a/saml/SAMLConfig.h b/saml/SAMLConfig.h index 1f926a2..91a0598 100644 --- a/saml/SAMLConfig.h +++ b/saml/SAMLConfig.h @@ -146,22 +146,22 @@ namespace opensaml { virtual std::string hashSHA1(const char* s, bool toHex=false)=0; /** Manages factories for MessageDecoder plugins. */ - xmltooling::PluginManager MessageDecoderManager; + xmltooling::PluginManager MessageDecoderManager; /** Manages factories for MessageEncoder plugins. */ - xmltooling::PluginManager MessageEncoderManager; + xmltooling::PluginManager MessageEncoderManager; /** Manages factories for SAMLArtifact plugins. */ - xmltooling::PluginManager SAMLArtifactManager; + xmltooling::PluginManager SAMLArtifactManager; /** Manages factories for SecurityPolicyRule plugins. */ - xmltooling::PluginManager SecurityPolicyRuleManager; + xmltooling::PluginManager SecurityPolicyRuleManager; /** Manages factories for MetadataProvider plugins. */ - xmltooling::PluginManager MetadataProviderManager; + xmltooling::PluginManager MetadataProviderManager; /** Manages factories for MetadataFilter plugins. */ - xmltooling::PluginManager MetadataFilterManager; + xmltooling::PluginManager MetadataFilterManager; protected: SAMLConfig() : m_artifactMap(NULL) {} diff --git a/saml/binding/impl/MessageDecoder.cpp b/saml/binding/impl/MessageDecoder.cpp index 9546b7e..2620cd3 100644 --- a/saml/binding/impl/MessageDecoder.cpp +++ b/saml/binding/impl/MessageDecoder.cpp @@ -26,19 +26,20 @@ using namespace opensaml; using namespace xmltooling; +using namespace std; namespace opensaml { namespace saml1p { - SAML_DLLLOCAL PluginManager::Factory SAML1ArtifactDecoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML1POSTDecoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML1SOAPDecoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML1ArtifactDecoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML1POSTDecoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML1SOAPDecoderFactory; }; namespace saml2p { - SAML_DLLLOCAL PluginManager::Factory SAML2ArtifactDecoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2POSTDecoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2RedirectDecoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2SOAPDecoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2ArtifactDecoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2POSTDecoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2RedirectDecoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2SOAPDecoderFactory; }; }; diff --git a/saml/binding/impl/MessageEncoder.cpp b/saml/binding/impl/MessageEncoder.cpp index 8a8bee3..483fcd5 100644 --- a/saml/binding/impl/MessageEncoder.cpp +++ b/saml/binding/impl/MessageEncoder.cpp @@ -34,17 +34,17 @@ using namespace std; namespace opensaml { namespace saml1p { - SAML_DLLLOCAL PluginManager::Factory SAML1ArtifactEncoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML1POSTEncoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML1SOAPEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML1ArtifactEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML1POSTEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML1SOAPEncoderFactory; }; namespace saml2p { - SAML_DLLLOCAL PluginManager::Factory SAML2ArtifactEncoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2POSTEncoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2POSTSimpleSignEncoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2RedirectEncoderFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2SOAPEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2ArtifactEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2POSTEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2POSTSimpleSignEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2RedirectEncoderFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2SOAPEncoderFactory; }; }; diff --git a/saml/binding/impl/SAMLArtifact.cpp b/saml/binding/impl/SAMLArtifact.cpp index 520e83d..7c50035 100644 --- a/saml/binding/impl/SAMLArtifact.cpp +++ b/saml/binding/impl/SAMLArtifact.cpp @@ -31,12 +31,12 @@ using namespace std; namespace opensaml { namespace saml1p { - SAML_DLLLOCAL PluginManager::Factory SAMLArtifactType0001Factory; - SAML_DLLLOCAL PluginManager::Factory SAMLArtifactType0002Factory; + SAML_DLLLOCAL PluginManager::Factory SAMLArtifactType0001Factory; + SAML_DLLLOCAL PluginManager::Factory SAMLArtifactType0002Factory; }; namespace saml2p { - SAML_DLLLOCAL PluginManager::Factory SAML2ArtifactType0004Factory; + SAML_DLLLOCAL PluginManager::Factory SAML2ArtifactType0004Factory; }; }; diff --git a/saml/binding/impl/SecurityPolicy.cpp b/saml/binding/impl/SecurityPolicy.cpp index bfdeb90..5fd35fa 100644 --- a/saml/binding/impl/SecurityPolicy.cpp +++ b/saml/binding/impl/SecurityPolicy.cpp @@ -32,12 +32,12 @@ using namespace xmltooling; using namespace std; namespace opensaml { - SAML_DLLLOCAL PluginManager::Factory ClientCertAuthRuleFactory; - SAML_DLLLOCAL PluginManager::Factory MessageFlowRuleFactory; - SAML_DLLLOCAL PluginManager::Factory SAML1MessageRuleFactory; - SAML_DLLLOCAL PluginManager::Factory SAML2MessageRuleFactory; - SAML_DLLLOCAL PluginManager::Factory SimpleSigningRuleFactory; - SAML_DLLLOCAL PluginManager::Factory XMLSigningRuleFactory; + SAML_DLLLOCAL PluginManager::Factory ClientCertAuthRuleFactory; + SAML_DLLLOCAL PluginManager::Factory MessageFlowRuleFactory; + SAML_DLLLOCAL PluginManager::Factory SAML1MessageRuleFactory; + SAML_DLLLOCAL PluginManager::Factory SAML2MessageRuleFactory; + SAML_DLLLOCAL PluginManager::Factory SimpleSigningRuleFactory; + SAML_DLLLOCAL PluginManager::Factory XMLSigningRuleFactory; }; void SAML_API opensaml::registerSecurityPolicyRules() diff --git a/saml/saml2/metadata/impl/MetadataProvider.cpp b/saml/saml2/metadata/impl/MetadataProvider.cpp index ea68656..fcc3aaf 100644 --- a/saml/saml2/metadata/impl/MetadataProvider.cpp +++ b/saml/saml2/metadata/impl/MetadataProvider.cpp @@ -37,11 +37,11 @@ using namespace std; namespace opensaml { namespace saml2md { - SAML_DLLLOCAL PluginManager::Factory XMLMetadataProviderFactory; - SAML_DLLLOCAL PluginManager::Factory ChainingMetadataProviderFactory; - SAML_DLLLOCAL PluginManager::Factory BlacklistMetadataFilterFactory; - SAML_DLLLOCAL PluginManager::Factory WhitelistMetadataFilterFactory; - SAML_DLLLOCAL PluginManager::Factory SignatureMetadataFilterFactory; + SAML_DLLLOCAL PluginManager::Factory XMLMetadataProviderFactory; + SAML_DLLLOCAL PluginManager::Factory ChainingMetadataProviderFactory; + SAML_DLLLOCAL PluginManager::Factory BlacklistMetadataFilterFactory; + SAML_DLLLOCAL PluginManager::Factory WhitelistMetadataFilterFactory; + SAML_DLLLOCAL PluginManager::Factory SignatureMetadataFilterFactory; }; };