/*
- * Copyright 2001-2009 Internet2
+ * Copyright 2001-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
virtual ~MessageDecoder();
/**
+ * Returns identifier for the protocol family associated with the decoder.
+ *
+ * @return a protocol family identifier, or nullptr
+ */
+ virtual const XMLCh* getProtocolFamily() 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 bool isUserAgentPresent() const;
/**
+ * Returns identifier for the protocol family associated with the encoder.
+ *
+ * @return a protocol family identifier, or nullptr
+ */
+ virtual const XMLCh* getProtocolFamily() const;
+
+ /**
* Interface to caller-supplied artifact generation mechanism.
*
* Generating an artifact for storage and retrieval requires knowledge of
{
}
+const XMLCh* MessageDecoder::getProtocolFamily() const
+{
+ return nullptr;
+}
+
bool MessageDecoder::isUserAgentPresent() const
{
return true;
/*
- * Copyright 2001-2009 Internet2
+ * Copyright 2001-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
}
+const XMLCh* MessageEncoder::getProtocolFamily() const
+{
+ return nullptr;
+}
+
bool MessageEncoder::isCompact() const
{
return false;
/*
- * Copyright 2001-2009 Internet2
+ * Copyright 2001-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
virtual ~SAML1MessageDecoder();
public:
+ const XMLCh* getProtocolFamily() const;
void extractMessageDetails (
const xmltooling::XMLObject& message,
const xmltooling::GenericRequest& genericRequest,
public:
SAML1ArtifactEncoder() {}
virtual ~SAML1ArtifactEncoder() {}
-
+
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML11_PROTOCOL_ENUM;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
{
}
+const XMLCh* SAML1MessageDecoder::getProtocolFamily() const
+{
+ return samlconstants::SAML11_PROTOCOL_ENUM;
+}
+
void SAML1MessageDecoder::extractMessageDetails(
const XMLObject& message, const GenericRequest& req, const XMLCh* protocol, SecurityPolicy& policy
) const
public:
SAML1POSTEncoder(const DOMElement* e, const XMLCh* ns);
virtual ~SAML1POSTEncoder() {}
-
+
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML11_PROTOCOL_ENUM;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
return false;
}
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML11_PROTOCOL_ENUM;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
/*
- * Copyright 2001-2009 Internet2
+ * Copyright 2001-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
virtual ~SAML2MessageDecoder();
public:
+ const XMLCh* getProtocolFamily() const;
void extractMessageDetails (
const xmltooling::XMLObject& message,
const xmltooling::GenericRequest& genericRequest,
public:
SAML2ArtifactEncoder(const DOMElement* e, const XMLCh* ns);
virtual ~SAML2ArtifactEncoder() {}
-
+
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML20P_NS;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
delete m_idpList;
}
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML20P_NS;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
/*
- * Copyright 2001-2009 Internet2
+ * Copyright 2001-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
}
+const XMLCh* SAML2MessageDecoder::getProtocolFamily() const
+{
+ return samlconstants::SAML20P_NS;
+}
+
void SAML2MessageDecoder::extractMessageDetails(
const XMLObject& message, const GenericRequest& request, const XMLCh* protocol, SecurityPolicy& policy
) const
public:
SAML2POSTEncoder(const DOMElement* e, const XMLCh* ns, bool simple=false);
virtual ~SAML2POSTEncoder() {}
-
+
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML20P_NS;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
bool isCompact() const {
return true;
}
-
+
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML20P_NS;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
return false;
}
+ const XMLCh* getProtocolFamily() const {
+ return samlconstants::SAML20P_NS;
+ }
+
long encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,