Roll back previous change, not going to work.
authorScott Cantor <cantor.2@osu.edu>
Wed, 11 Aug 2010 19:01:39 +0000 (19:01 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 11 Aug 2010 19:01:39 +0000 (19:01 +0000)
20 files changed:
saml/binding/MessageDecoder.h
saml/binding/MessageEncoder.h
saml/binding/impl/MessageDecoder.cpp
saml/binding/impl/MessageEncoder.cpp
saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp
saml/saml1/binding/impl/SAML1ArtifactEncoder.cpp
saml/saml1/binding/impl/SAML1POSTDecoder.cpp
saml/saml1/binding/impl/SAML1POSTEncoder.cpp
saml/saml1/binding/impl/SAML1SOAPDecoder.cpp
saml/saml1/binding/impl/SAML1SOAPEncoder.cpp
saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
saml/saml2/binding/impl/SAML2ECPDecoder.cpp
saml/saml2/binding/impl/SAML2ECPEncoder.cpp
saml/saml2/binding/impl/SAML2POSTDecoder.cpp
saml/saml2/binding/impl/SAML2POSTEncoder.cpp
saml/saml2/binding/impl/SAML2RedirectDecoder.cpp
saml/saml2/binding/impl/SAML2RedirectEncoder.cpp
saml/saml2/binding/impl/SAML2SOAPDecoder.cpp
saml/saml2/binding/impl/SAML2SOAPEncoder.cpp

index ad7ad47..bbe176e 100644 (file)
@@ -68,13 +68,6 @@ namespace opensaml {
         virtual const XMLCh* getProtocolFamily() const;
 
         /**
-         * Returns a shorthand name for the binding/encoding supported by the decoder.
-         *
-         * @return  a short name for the binding/encoding, or nullptr
-         */
-        virtual const char* getShortName() const;
-
-        /**
          * Indicates whether a web browser or similar user agent delivered the message.
          *
          * @return true iff the message was delivered by a user agent
index 96c30b3..095a523 100644 (file)
@@ -72,13 +72,6 @@ namespace opensaml {
         virtual const XMLCh* getProtocolFamily() const;
 
         /**
-         * Returns a shorthand name for the binding/encoding supported by the encoder.
-         *
-         * @return  a short name for the binding/encoding, or nullptr
-         */
-        virtual const char* getShortName() const;
-
-        /**
          * Interface to caller-supplied artifact generation mechanism.
          * 
          * Generating an artifact for storage and retrieval requires knowledge of
index 8c33780..4ff6c79 100644 (file)
@@ -43,7 +43,6 @@ namespace opensaml {
     namespace saml2p {
         SAML_DLLLOCAL PluginManager< MessageDecoder,string,pair<const DOMElement*,const XMLCh*> >::Factory SAML2ArtifactDecoderFactory;
         SAML_DLLLOCAL PluginManager< MessageDecoder,string,pair<const DOMElement*,const XMLCh*> >::Factory SAML2POSTDecoderFactory;
-        SAML_DLLLOCAL PluginManager< MessageDecoder,string,pair<const DOMElement*,const XMLCh*> >::Factory SAML2POSTSimpleSignDecoderFactory;
         SAML_DLLLOCAL PluginManager< MessageDecoder,string,pair<const DOMElement*,const XMLCh*> >::Factory SAML2RedirectDecoderFactory;
         SAML_DLLLOCAL PluginManager< MessageDecoder,string,pair<const DOMElement*,const XMLCh*> >::Factory SAML2SOAPDecoderFactory;
         SAML_DLLLOCAL PluginManager< MessageDecoder,string,pair<const DOMElement*,const XMLCh*> >::Factory SAML2ECPDecoderFactory;
@@ -58,7 +57,7 @@ void SAML_API opensaml::registerMessageDecoders()
     conf.MessageDecoderManager.registerFactory(samlconstants::SAML1_BINDING_SOAP, saml1p::SAML1SOAPDecoderFactory);
     conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_HTTP_ARTIFACT, saml2p::SAML2ArtifactDecoderFactory);
     conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_HTTP_POST, saml2p::SAML2POSTDecoderFactory);
-    conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_HTTP_POST_SIMPLESIGN, saml2p::SAML2POSTSimpleSignDecoderFactory);
+    conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_HTTP_POST_SIMPLESIGN, saml2p::SAML2POSTDecoderFactory);
     conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_HTTP_REDIRECT, saml2p::SAML2RedirectDecoderFactory);
     conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_SOAP, saml2p::SAML2SOAPDecoderFactory);
     conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_PAOS, saml2p::SAML2ECPDecoderFactory);
@@ -80,11 +79,6 @@ const XMLCh* MessageDecoder::getProtocolFamily() const
     return nullptr;
 }
 
-const char* MessageDecoder::getShortName() const
-{
-    return nullptr;
-}
-
 bool MessageDecoder::isUserAgentPresent() const
 {
     return true;
index 2665f04..035ad55 100644 (file)
@@ -76,11 +76,6 @@ const XMLCh* MessageEncoder::getProtocolFamily() const
     return nullptr;
 }
 
-const char* MessageEncoder::getShortName() const
-{
-    return nullptr;
-}
-
 bool MessageEncoder::isCompact() const
 {
     return false;
index 12552ad..ad6e2d9 100644 (file)
@@ -50,10 +50,6 @@ namespace opensaml {
             SAML1ArtifactDecoder() {}
             virtual ~SAML1ArtifactDecoder() {}
 
-            const char* getShortName() const {
-                return "Artifact";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index 4e38da3..99c1432 100644 (file)
@@ -56,10 +56,6 @@ namespace opensaml {
                 return samlconstants::SAML11_PROTOCOL_ENUM;
             }
 
-            const char* getShortName() const {
-                return "Artifact";
-            }
-
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,
index 2ae3d8d..0054004 100644 (file)
@@ -55,10 +55,6 @@ namespace opensaml {
             SAML1POSTDecoder() {}
             virtual ~SAML1POSTDecoder() {}
 
-            const char* getShortName() const {
-                return "POST";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index 64a2511..73dc625 100644 (file)
@@ -58,10 +58,6 @@ namespace opensaml {
                 return samlconstants::SAML11_PROTOCOL_ENUM;
             }
 
-            const char* getShortName() const {
-                return "POST";
-            }
-
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,
index 12be2b4..6a9e29c 100644 (file)
@@ -53,10 +53,6 @@ namespace opensaml {
                 return false;
             }
 
-            const char* getShortName() const {
-                return "SOAP";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index 43c96c4..4aef15f 100644 (file)
@@ -54,10 +54,6 @@ namespace opensaml {
                 return false;
             }
 
-            const char* getShortName() const {
-                return "POST";
-            }
-
             const XMLCh* getProtocolFamily() const {
                 return samlconstants::SAML11_PROTOCOL_ENUM;
             }
index 32ca0f4..b58d356 100644 (file)
@@ -51,10 +51,6 @@ namespace opensaml {
             SAML2ArtifactDecoder() {}
             virtual ~SAML2ArtifactDecoder() {}
 
-            const char* getShortName() const {
-                return "Artifact";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index b16e9c1..138fbd2 100644 (file)
@@ -60,10 +60,6 @@ namespace opensaml {
                 return samlconstants::SAML20P_NS;
             }
 
-            const char* getShortName() const {
-                return "Artifact";
-            }
-
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,
index 620c802..53f2210 100644 (file)
@@ -50,10 +50,6 @@ namespace opensaml {
             SAML2ECPDecoder() {}
             virtual ~SAML2ECPDecoder() {}
 
-            const char* getShortName() const {
-                return "ECP";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index 103080c..36c0fce 100644 (file)
@@ -68,10 +68,6 @@ namespace opensaml {
                 return samlconstants::SAML20P_NS;
             }
 
-            const char* getShortName() const {
-                return "ECP";
-            }
-
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,
index 64404ce..a190e69 100644 (file)
@@ -51,33 +51,19 @@ namespace opensaml {
         class SAML_DLLLOCAL SAML2POSTDecoder : public SAML2MessageDecoder
         {
         public:
-            SAML2POSTDecoder(const DOMElement* e, const XMLCh* ns, bool simple=false) {
-            }
-
+            SAML2POSTDecoder() {}
             virtual ~SAML2POSTDecoder() {}
 
-            const char* getShortName() const {
-                return m_simple ? "POST-SimpleSign" : "POST";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
                 SecurityPolicy& policy
                 ) const;
-
-        private:
-            bool m_simple;
         };                
 
-        MessageDecoder* SAML_DLLLOCAL SAML2POSTDecoderFactory(const pair<const DOMElement*,const XMLCh*>& p)
-        {
-            return new SAML2POSTDecoder(p.first, p.second, false);
-        }
-
-        MessageDecoder* SAML_DLLLOCAL SAML2POSTSimpleSignDecoderFactory(const pair<const DOMElement*,const XMLCh*>& p)
+        MessageDecoder* SAML_DLLLOCAL SAML2POSTDecoderFactory(const pair<const DOMElement*,const XMLCh*>&)
         {
-            return new SAML2POSTDecoder(p.first, p.second, true);
+            return new SAML2POSTDecoder();
         }
     };
 };
index 8489888..53f08cf 100644 (file)
@@ -60,10 +60,6 @@ namespace opensaml {
                 return samlconstants::SAML20P_NS;
             }
 
-            const char* getShortName() const {
-                return m_simple ? "POST-SimpleSign" : "POST";
-            }
-
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,
index d1ad87e..f81584f 100644 (file)
@@ -54,10 +54,6 @@ namespace opensaml {
             SAML2RedirectDecoder() {}
             virtual ~SAML2RedirectDecoder() {}
 
-            const char* getShortName() const {
-                return "Redirect";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index 58c7a66..616d98f 100644 (file)
@@ -62,10 +62,6 @@ namespace opensaml {
                 return samlconstants::SAML20P_NS;
             }
 
-            const char* getShortName() const {
-                return "Redirect";
-            }
-
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,
index e4e81e6..69848be 100644 (file)
@@ -53,10 +53,6 @@ namespace opensaml {
                 return false;
             }
 
-            const char* getShortName() const {
-                return "SOAP";
-            }
-
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index a7b5b9c..f9a2e1c 100644 (file)
@@ -58,10 +58,6 @@ namespace opensaml {
                 return samlconstants::SAML20P_NS;
             }
 
-            const char* getShortName() const {
-                return "SOAP";
-            }
-
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,