[cpp-opensaml COMMIT] in /branches/REL_2: saml/saml2/core/Protocols.h saml/saml2/core/impl/Protocols20Impl.cpp saml/u...

noreply at shibboleth.net noreply at shibboleth.net
Mon Jul 9 22:47:12 EDT 2012


Author: scantor
Date: Mon Jul  9 22:47:12 2012
New Revision: 735

URL: http://svn.shibboleth.net/view/cpp-opensaml?rev=735&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-469

Added:
    branches/REL_2/schemas/saml-async-slo-v1.0.xsd   (with props)
Modified:
    branches/REL_2/saml/saml2/core/Protocols.h
    branches/REL_2/saml/saml2/core/impl/Protocols20Impl.cpp
    branches/REL_2/saml/util/SAMLConstants.cpp
    branches/REL_2/saml/util/SAMLConstants.h
    branches/REL_2/schemas/saml20-catalog.xml.in

Modified: branches/REL_2/saml/saml2/core/Protocols.h
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/saml/saml2/core/Protocols.h?rev=735&r1=734&r2=735&view=diff
==============================================================================
--- branches/REL_2/saml/saml2/core/Protocols.h (original)
+++ branches/REL_2/saml/saml2/core/Protocols.h Mon Jul  9 22:47:12 2012
@@ -49,6 +49,11 @@
         DECL_XMLOBJECT_SIMPLE(SAML_API,StatusMessage,Message,SAML 2.0 StatusMessage element);
 
         DECL_XMLOBJECT_SIMPLE(SAML_API,RespondTo,Name,SAML 2.0 third-party request RespondTo extension element);
+
+        BEGIN_XMLOBJECT(SAML_API,Asynchronous,xmltooling::XMLObject,SAML 2.0 Asynchronous logout extension element);
+            /** AsynchronousType local name */
+            static const XMLCh TYPE_NAME[];
+        END_XMLOBJECT;
 
         BEGIN_XMLOBJECT(SAML_API,Extensions,xmltooling::ElementExtensibleXMLObject,SAML 2.0 protocol Extensions element);
             /** ExtensionsType local name */
@@ -393,6 +398,8 @@
         
         DECL_XMLOBJECTBUILDER(SAML_API,RespondTo,samlconstants::SAML20P_THIRDPARTY_EXT_NS,samlconstants::SAML20P_THIRDPARTY_EXT_PREFIX);
 
+        DECL_XMLOBJECTBUILDER(SAML_API,Asynchronous,samlconstants::SAML20P_ASYNCSLO_EXT_NS,samlconstants::SAML20P_ASYNCSLO_EXT_PREFIX);
+
         /**
          * Registers builders and validators for SAML 2.0 Protocol classes into the runtime.
          */

Modified: branches/REL_2/saml/saml2/core/impl/Protocols20Impl.cpp
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/saml/saml2/core/impl/Protocols20Impl.cpp?rev=735&r1=734&r2=735&view=diff
==============================================================================
--- branches/REL_2/saml/saml2/core/impl/Protocols20Impl.cpp (original)
+++ branches/REL_2/saml/saml2/core/impl/Protocols20Impl.cpp Mon Jul  9 22:47:12 2012
@@ -71,7 +71,27 @@
 
         DECL_XMLOBJECTIMPL_SIMPLE(SAML_DLLLOCAL,RespondTo);
 
-        //TODO need unit test for this, using objects from another namespace
+        class SAML_DLLLOCAL AsynchronousImpl : public virtual Asynchronous,
+            public AbstractSimpleElement,
+            public AbstractDOMCachingXMLObject,
+            public AbstractXMLObjectMarshaller,
+            public AbstractXMLObjectUnmarshaller
+        {
+        public:
+            virtual ~AsynchronousImpl() {}
+
+            AsynchronousImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName* schemaType)
+                : AbstractXMLObject(nsURI, localName, prefix, schemaType) {}
+
+            AsynchronousImpl(const AsynchronousImpl& src)
+                : AbstractXMLObject(src), AbstractSimpleElement(src), AbstractDOMCachingXMLObject(src) {}
+
+            IMPL_XMLOBJECT_CLONE(Asynchronous);
+
+        protected:
+            // has no attributes or children
+        };
+
         class SAML_DLLLOCAL ExtensionsImpl : public virtual Extensions,
              public AbstractComplexElement,
              public AbstractDOMCachingXMLObject,
@@ -1559,6 +1579,7 @@
 IMPL_XMLOBJECTBUILDER(Terminate);
 
 IMPL_XMLOBJECTBUILDER(RespondTo);
+IMPL_XMLOBJECTBUILDER(Asynchronous);
 
 // Unicode literals
 const XMLCh Artifact::LOCAL_NAME[] = UNICODE_LITERAL_8(A,r,t,i,f,a,c,t);
@@ -1568,6 +1589,8 @@
 const XMLCh ArtifactResponse::TYPE_NAME[] = UNICODE_LITERAL_20(A,r,t,i,f,a,c,t,R,e,s,p,o,n,s,e,T,y,p,e);
 const XMLCh AssertionIDRequest::LOCAL_NAME[] = UNICODE_LITERAL_18(A,s,s,e,r,t,i,o,n,I,D,R,e,q,u,e,s,t);
 const XMLCh AssertionIDRequest::TYPE_NAME[] = UNICODE_LITERAL_22(A,s,s,e,r,t,i,o,n,I,D,R,e,q,u,e,s,t,T,y,p,e);
+const XMLCh Asynchronous::LOCAL_NAME[] = UNICODE_LITERAL_12(A,s,y,n,c,h,r,o,n,o,u,s);
+const XMLCh Asynchronous::TYPE_NAME[] = UNICODE_LITERAL_16(A,s,y,n,c,h,r,o,n,o,u,s,T,y,p,e);
 const XMLCh AttributeQuery::LOCAL_NAME[] = UNICODE_LITERAL_14(A,t,t,r,i,b,u,t,e,Q,u,e,r,y);
 const XMLCh AttributeQuery::TYPE_NAME[] = UNICODE_LITERAL_18(A,t,t,r,i,b,u,t,e,Q,u,e,r,y,T,y,p,e);
 const XMLCh AuthnQuery::LOCAL_NAME[] = UNICODE_LITERAL_10(A,u,t,h,n,Q,u,e,r,y);

Modified: branches/REL_2/saml/util/SAMLConstants.cpp
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/saml/util/SAMLConstants.cpp?rev=735&r1=734&r2=735&view=diff
==============================================================================
--- branches/REL_2/saml/util/SAMLConstants.cpp (original)
+++ branches/REL_2/saml/util/SAMLConstants.cpp Mon Jul  9 22:47:12 2012
@@ -188,6 +188,17 @@
 

[... 48 lines stripped ...]


More information about the commits mailing list