From 35f2dda5fc40fcb4b489e42813c0327cbec06474 Mon Sep 17 00:00:00 2001 From: cantor Date: Thu, 31 Jan 2008 03:31:35 +0000 Subject: [PATCH] Support keyName in shorthand syntax. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@464 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/security/impl/FilesystemCredentialResolver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmltooling/security/impl/FilesystemCredentialResolver.cpp b/xmltooling/security/impl/FilesystemCredentialResolver.cpp index 65da6e0..acd79c9 100644 --- a/xmltooling/security/impl/FilesystemCredentialResolver.cpp +++ b/xmltooling/security/impl/FilesystemCredentialResolver.cpp @@ -166,6 +166,7 @@ namespace xmltooling { static const XMLCh format[] = UNICODE_LITERAL_6(f,o,r,m,a,t); static const XMLCh Key[] = UNICODE_LITERAL_3(K,e,y); static const XMLCh _key[] = UNICODE_LITERAL_3(k,e,y); + static const XMLCh keyName[] = UNICODE_LITERAL_7(k,e,y,N,a,m,e); static const XMLCh Name[] = UNICODE_LITERAL_4(N,a,m,e); static const XMLCh password[] = UNICODE_LITERAL_8(p,a,s,s,w,o,r,d); static const XMLCh Path[] = UNICODE_LITERAL_4(P,a,t,h); @@ -192,6 +193,11 @@ FilesystemCredentialResolver::FilesystemCredentialResolver(const DOMElement* e) path->appendChild(e->getOwnerDocument()->createTextNode(e->getAttributeNS(NULL,_key))); if (e->hasAttributeNS(NULL,password)) child->setAttributeNS(NULL,password,e->getAttributeNS(NULL,password)); + if (e->hasAttributeNS(NULL,keyName)) { + path = e->getOwnerDocument()->createElementNS(NULL,Name); + child->appendChild(path); + path->appendChild(e->getOwnerDocument()->createTextNode(e->getAttributeNS(NULL,keyName))); + } } if (e->hasAttributeNS(NULL,_certificate)) { child = e->getOwnerDocument()->createElementNS(NULL,Certificate); -- 2.1.4