[cpp-xmltooling COMMIT] in /branches/REL_1/xmltooling: Makefile.am security/CredentialResolver.h security/impl/Creden...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Aug 11 19:56:12 BST 2011
Author: scantor
Date: Thu Aug 11 19:56:12 2011
New Revision: 900
URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=900&view=rev
Log:
Add dummy credential resolver.
Added:
branches/REL_1/xmltooling/security/impl/DummyCredentialResolver.cpp
- copied, changed from r899, branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp
Modified:
branches/REL_1/xmltooling/Makefile.am
branches/REL_1/xmltooling/security/CredentialResolver.h
branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp
branches/REL_1/xmltooling/xmltooling.vcxproj
branches/REL_1/xmltooling/xmltooling.vcxproj.filters
Modified: branches/REL_1/xmltooling/Makefile.am
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/Makefile.am?rev=900&r1=899&r2=900&view=diff
==============================================================================
--- branches/REL_1/xmltooling/Makefile.am (original)
+++ branches/REL_1/xmltooling/Makefile.am Thu Aug 11 19:56:12 2011
@@ -137,6 +137,7 @@
security/impl/ChainingTrustEngine.cpp \
security/impl/CredentialCriteria.cpp \
security/impl/CredentialResolver.cpp \
+ security/impl/DummyCredentialResolver.cpp \
security/impl/ExplicitKeyTrustEngine.cpp \
security/impl/FilesystemCredentialResolver.cpp \
security/impl/InlineKeyResolver.cpp \
Modified: branches/REL_1/xmltooling/security/CredentialResolver.h
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/security/CredentialResolver.h?rev=900&r1=899&r2=900&view=diff
==============================================================================
--- branches/REL_1/xmltooling/security/CredentialResolver.h (original)
+++ branches/REL_1/xmltooling/security/CredentialResolver.h Thu Aug 11 19:56:12 2011
@@ -74,6 +74,9 @@
/** CredentialResolver based on local files with no criteria support. */
#define FILESYSTEM_CREDENTIAL_RESOLVER "File"
+ /** CredentialResolver that returns nothing, for use with some APIs. */
+ #define DUMMY_CREDENTIAL_RESOLVER "Dummy"
+
/** CredentialResolver based on chaining together other resolvers. */
#define CHAINING_CREDENTIAL_RESOLVER "Chaining"
};
Modified: branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp?rev=900&r1=899&r2=900&view=diff
==============================================================================
--- branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp (original)
+++ branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp Thu Aug 11 19:56:12 2011
@@ -30,7 +30,8 @@
using namespace xmltooling;
namespace xmltooling {
- XMLTOOL_DLLLOCAL PluginManager<CredentialResolver,std::string,const xercesc::DOMElement*>::Factory FilesystemCredentialResolverFactory;
+ XMLTOOL_DLLLOCAL PluginManager<CredentialResolver,std::string,const xercesc::DOMElement*>::Factory FilesystemCredentialResolverFactory;
+ XMLTOOL_DLLLOCAL PluginManager<CredentialResolver,std::string,const xercesc::DOMElement*>::Factory DummyCredentialResolverFactory;
XMLTOOL_DLLLOCAL PluginManager<CredentialResolver,std::string,const xercesc::DOMElement*>::Factory ChainingCredentialResolverFactory;
};
@@ -38,6 +39,7 @@
{
XMLToolingConfig& conf=XMLToolingConfig::getConfig();
conf.CredentialResolverManager.registerFactory(FILESYSTEM_CREDENTIAL_RESOLVER, FilesystemCredentialResolverFactory);
+ conf.CredentialResolverManager.registerFactory(DUMMY_CREDENTIAL_RESOLVER, DummyCredentialResolverFactory);
conf.CredentialResolverManager.registerFactory(CHAINING_CREDENTIAL_RESOLVER, ChainingCredentialResolverFactory);
}
Copied: branches/REL_1/xmltooling/security/impl/DummyCredentialResolver.cpp (from r899, branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp)
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/security/impl/DummyCredentialResolver.cpp?p2=branches/REL_1/xmltooling/security/impl/DummyCredentialResolver.cpp&p1=branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp&r1=899&r2=900&rev=900&view=diff
==============================================================================
--- branches/REL_1/xmltooling/security/impl/CredentialResolver.cpp (original)
+++ branches/REL_1/xmltooling/security/impl/DummyCredentialResolver.cpp Thu Aug 11 19:56:12 2011
@@ -19,32 +19,45 @@
*/
/**
- * CredentialResolver.cpp
+ * DummyCredentialResolver.cpp
*
- * An API for resolving keys and certificates based on application criteria.
+ * CredentialResolver that returns nothing.
*/
#include "internal.h"
+#include "XMLToolingConfig.h"
#include "security/CredentialResolver.h"
+#include "util/NDC.h"
using namespace xmltooling;
+using namespace std;
+
+using xercesc::DOMElement;
namespace xmltooling {
- XMLTOOL_DLLLOCAL PluginManager<CredentialResolver,std::string,const xercesc::DOMElement*>::Factory FilesystemCredentialResolverFactory;
[... 73 lines stripped ...]
More information about the commits
mailing list