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
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
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;
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);
return nullptr;
}
-const char* MessageDecoder::getShortName() const
-{
- return nullptr;
-}
-
bool MessageDecoder::isUserAgentPresent() const
{
return true;
return nullptr;
}
-const char* MessageEncoder::getShortName() const
-{
- return nullptr;
-}
-
bool MessageEncoder::isCompact() const
{
return false;
SAML1ArtifactDecoder() {}
virtual ~SAML1ArtifactDecoder() {}
- const char* getShortName() const {
- return "Artifact";
- }
-
xmltooling::XMLObject* decode(
std::string& relayState,
const GenericRequest& genericRequest,
return samlconstants::SAML11_PROTOCOL_ENUM;
}
- const char* getShortName() const {
- return "Artifact";
- }
-
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
SAML1POSTDecoder() {}
virtual ~SAML1POSTDecoder() {}
- const char* getShortName() const {
- return "POST";
- }
-
xmltooling::XMLObject* decode(
std::string& relayState,
const GenericRequest& genericRequest,
return samlconstants::SAML11_PROTOCOL_ENUM;
}
- const char* getShortName() const {
- return "POST";
- }
-
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
return false;
}
- const char* getShortName() const {
- return "SOAP";
- }
-
xmltooling::XMLObject* decode(
std::string& relayState,
const GenericRequest& genericRequest,
return false;
}
- const char* getShortName() const {
- return "POST";
- }
-
const XMLCh* getProtocolFamily() const {
return samlconstants::SAML11_PROTOCOL_ENUM;
}
SAML2ArtifactDecoder() {}
virtual ~SAML2ArtifactDecoder() {}
- const char* getShortName() const {
- return "Artifact";
- }
-
xmltooling::XMLObject* decode(
std::string& relayState,
const GenericRequest& genericRequest,
return samlconstants::SAML20P_NS;
}
- const char* getShortName() const {
- return "Artifact";
- }
-
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
SAML2ECPDecoder() {}
virtual ~SAML2ECPDecoder() {}
- const char* getShortName() const {
- return "ECP";
- }
-
xmltooling::XMLObject* decode(
std::string& relayState,
const GenericRequest& genericRequest,
return samlconstants::SAML20P_NS;
}
- const char* getShortName() const {
- return "ECP";
- }
-
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
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();
}
};
};
return samlconstants::SAML20P_NS;
}
- const char* getShortName() const {
- return m_simple ? "POST-SimpleSign" : "POST";
- }
-
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
SAML2RedirectDecoder() {}
virtual ~SAML2RedirectDecoder() {}
- const char* getShortName() const {
- return "Redirect";
- }
-
xmltooling::XMLObject* decode(
std::string& relayState,
const GenericRequest& genericRequest,
return samlconstants::SAML20P_NS;
}
- const char* getShortName() const {
- return "Redirect";
- }
-
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
return false;
}
- const char* getShortName() const {
- return "SOAP";
- }
-
xmltooling::XMLObject* decode(
std::string& relayState,
const GenericRequest& genericRequest,
return samlconstants::SAML20P_NS;
}
- const char* getShortName() const {
- return "SOAP";
- }
-
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,