samlbindinclude_HEADERS = \
binding/ArtifactMap.h \
- binding/ClientCertAuthRule.h \
binding/GenericRequest.h \
binding/GenericResponse.h \
binding/HTTPRequest.h \
binding/HTTPResponse.h \
binding/MessageDecoder.h \
binding/MessageEncoder.h \
- binding/MessageFlowRule.h \
binding/SAMLArtifact.h \
binding/SecurityPolicy.h \
binding/SecurityPolicyRule.h \
- binding/SimpleSigningRule.h \
binding/SOAPClient.h \
- binding/URLEncoder.h \
- binding/XMLSigningRule.h
+ binding/URLEncoder.h
encinclude_HEADERS = \
encryption/EncryptedKeyResolver.h
saml1bindinclude_HEADERS = \
saml1/binding/SAMLArtifactType0001.h \
saml1/binding/SAMLArtifactType0002.h \
- saml1/binding/SAML1ArtifactDecoder.h \
- saml1/binding/SAML1ArtifactEncoder.h \
- saml1/binding/SAML1POSTDecoder.h \
- saml1/binding/SAML1POSTEncoder.h \
- saml1/binding/SAML1SOAPDecoder.h \
- saml1/binding/SAML1SOAPEncoder.h \
- saml1/binding/SAML1SOAPClient.h \
- saml1/binding/SAML1MessageRule.h
+ saml1/binding/SAML1SOAPClient.h
saml2coreinclude_HEADERS = \
saml2/core/Assertions.h \
saml2bindinclude_HEADERS = \
saml2/binding/SAML2Artifact.h \
saml2/binding/SAML2ArtifactType0004.h \
- saml2/binding/SAML2ArtifactDecoder.h \
- saml2/binding/SAML2ArtifactEncoder.h \
- saml2/binding/SAML2POSTDecoder.h \
- saml2/binding/SAML2POSTEncoder.h \
saml2/binding/SAML2Redirect.h \
- saml2/binding/SAML2RedirectDecoder.h \
- saml2/binding/SAML2RedirectEncoder.h \
- saml2/binding/SAML2SOAPDecoder.h \
- saml2/binding/SAML2SOAPEncoder.h \
- saml2/binding/SAML2SOAPClient.h \
- saml2/binding/SAML2MessageRule.h
+ saml2/binding/SAML2SOAPClient.h
saml2mdinclude_HEADERS = \
saml2/metadata/AbstractMetadataProvider.h \
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/binding/ClientCertAuthRule.h
- *
- * TLS client authentication SecurityPolicyRule
- */
-
-#ifndef __saml_certrule_h__
-#define __saml_certrule_h__
-
-#include <saml/binding/SecurityPolicyRule.h>
-
-
-namespace opensaml {
- /**
- * TLS client authentication SecurityPolicyRule
- */
- class SAML_API ClientCertAuthRule : public SecurityPolicyRule
- {
- public:
- ClientCertAuthRule(const DOMElement* e) {}
- virtual ~ClientCertAuthRule() {}
-
- void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
- };
-};
-
-#endif /* __saml_certrule_h__ */
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/binding/MessageFlowRule.h
- *
- * SAML replay and freshness checking SecurityPolicyRule
- */
-
-#ifndef __saml_flowrule_h__
-#define __saml_flowrule_h__
-
-#include <saml/binding/SecurityPolicyRule.h>
-
-
-namespace opensaml {
- /**
- * SAML replay and freshness checking SecurityPolicyRule
- *
- * Some form of message rule to extract ID and timestamp must be
- * run prior to this rule.
- */
- class SAML_API MessageFlowRule : public SecurityPolicyRule
- {
- public:
- MessageFlowRule(const DOMElement* e);
- virtual ~MessageFlowRule() {}
-
- void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
-
- /**
- * Controls whether rule executes replay checking.
- *
- * @param checkReplay replay checking value to set
- */
- void setCheckReplay(bool checkReplay) {
- m_checkReplay = checkReplay;
- }
-
- /**
- * Controls maximum elapsed time between message issue and rule execution.
- *
- * @param expires maximum elapsed time in seconds
- */
- void setExpires(time_t expires) {
- m_expires = expires;
- }
-
- private:
- bool m_checkReplay;
- time_t m_expires;
- };
-
-};
-
-#endif /* __saml_flowrule_h__ */
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/binding/SimpleSigningRule.h
- *
- * Blob-oriented signature checking SecurityPolicyRule
- */
-
-#ifndef __saml_simplesignrule_h__
-#define __saml_simplesignrule_h__
-
-#include <saml/binding/SecurityPolicyRule.h>
-
-
-namespace opensaml {
- /**
- * Blob-oriented signature checking SecurityPolicyRule for
- * bindings that support non-XML signature techniques.
- */
- class SAML_API SimpleSigningRule : public SecurityPolicyRule
- {
- public:
- SimpleSigningRule(const DOMElement* e);
- virtual ~SimpleSigningRule() {}
-
- void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
-
- protected:
- /** Flag determining whether to raise exceptions if a signature fails to validate. */
- bool m_errorsFatal;
- };
-
-};
-
-#endif /* __saml_simplesignrule_h__ */
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/binding/XMLSigningRule.h
- *
- * XML Signature checking SecurityPolicyRule
- */
-
-#ifndef __saml_xmlsignrule_h__
-#define __saml_xmlsignrule_h__
-
-#include <saml/binding/SecurityPolicyRule.h>
-
-
-namespace opensaml {
- /**
- * XML Signature checking SecurityPolicyRule
- */
- class SAML_API XMLSigningRule : public SecurityPolicyRule
- {
- public:
- XMLSigningRule(const DOMElement* e);
- virtual ~XMLSigningRule() {}
-
- void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
-
- protected:
- /** Flag determining whether to raise exceptions if a signature fails to validate. */
- bool m_errorsFatal;
- };
-
-};
-
-#endif /* __saml_xmlsignrule_h__ */
#include "internal.h"
#include "exceptions.h"
-#include "binding/ClientCertAuthRule.h"
+#include "binding/SecurityPolicyRule.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
using namespace std;
namespace opensaml {
+ class SAML_DLLLOCAL ClientCertAuthRule : public SecurityPolicyRule
+ {
+ public:
+ ClientCertAuthRule(const DOMElement* e) {}
+ virtual ~ClientCertAuthRule() {}
+
+ void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+ };
+
SecurityPolicyRule* SAML_DLLLOCAL ClientCertAuthRuleFactory(const DOMElement* const & e)
{
return new ClientCertAuthRule(e);
#include "internal.h"
#include "exceptions.h"
-#include "binding/MessageFlowRule.h"
+#include "binding/SecurityPolicyRule.h"
#include <log4cpp/Category.hh>
#include <xmltooling/util/ReplayCache.h>
using namespace std;
namespace opensaml {
+ class SAML_DLLLOCAL MessageFlowRule : public SecurityPolicyRule
+ {
+ public:
+ MessageFlowRule(const DOMElement* e);
+ virtual ~MessageFlowRule() {}
+
+ void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+
+ private:
+ bool m_checkReplay;
+ time_t m_expires;
+ };
+
SecurityPolicyRule* SAML_DLLLOCAL MessageFlowRuleFactory(const DOMElement* const & e)
{
return new MessageFlowRule(e);
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPRequest.h"
-#include "binding/SimpleSigningRule.h"
+#include "binding/SecurityPolicyRule.h"
#include "saml2/core/Assertions.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
using xmlsignature::SignatureException;
namespace opensaml {
- SecurityPolicyRule* SAML_DLLLOCAL SimpleSigningRuleFactory(const DOMElement* const & e)
+ class SAML_DLLLOCAL SimpleSigningRule : public SecurityPolicyRule
{
- return new SimpleSigningRule(e);
- }
+ public:
+ SimpleSigningRule(const DOMElement* e);
+ virtual ~SimpleSigningRule() {}
+
+ void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+
+ private:
+ // Appends a raw parameter=value pair to the string.
+ static bool appendParameter(string& s, const char* data, const char* name);
+
+ bool m_errorsFatal;
+ };
- // Appends a raw parameter=value pair to the string.
- static bool appendParameter(string& s, const char* data, const char* name)
+ SecurityPolicyRule* SAML_DLLLOCAL SimpleSigningRuleFactory(const DOMElement* const & e)
{
- const char* start = strstr(data,name);
- if (!start)
- return false;
- if (!s.empty())
- s += '&';
- const char* end = strchr(start,'&');
- if (end)
- s.append(start, end-start);
- else
- s.append(start);
- return true;
+ return new SimpleSigningRule(e);
}
static const XMLCh errorsFatal[] = UNICODE_LITERAL_11(e,r,r,o,r,s,F,a,t,a,l);
};
+bool SimpleSigningRule::appendParameter(string& s, const char* data, const char* name)
+{
+ const char* start = strstr(data,name);
+ if (!start)
+ return false;
+ if (!s.empty())
+ s += '&';
+ const char* end = strchr(start,'&');
+ if (end)
+ s.append(start, end-start);
+ else
+ s.append(start);
+ return true;
+}
+
SimpleSigningRule::SimpleSigningRule(const DOMElement* e) : m_errorsFatal(false)
{
if (e) {
#include "internal.h"
#include "exceptions.h"
-#include "binding/XMLSigningRule.h"
+#include "binding/SecurityPolicyRule.h"
#include "saml2/core/Assertions.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
using xmlsignature::SignatureException;
namespace opensaml {
+ class SAML_DLLLOCAL XMLSigningRule : public SecurityPolicyRule
+ {
+ public:
+ XMLSigningRule(const DOMElement* e);
+ virtual ~XMLSigningRule() {}
+
+ void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+
+ private:
+ bool m_errorsFatal;
+ };
+
SecurityPolicyRule* SAML_DLLLOCAL XMLSigningRuleFactory(const DOMElement* const & e)
{
return new XMLSigningRule(e);
Name="binding"\r
>\r
<File\r
- RelativePath=".\saml1\binding\SAML1ArtifactDecoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml1\binding\SAML1ArtifactEncoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml1\binding\SAML1MessageRule.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml1\binding\SAML1POSTDecoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml1\binding\SAML1POSTEncoder.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\saml1\binding\SAML1SOAPClient.h"\r
>\r
</File>\r
<File\r
- RelativePath=".\saml1\binding\SAML1SOAPDecoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml1\binding\SAML1SOAPEncoder.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\saml1\binding\SAMLArtifactType0001.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
- RelativePath=".\saml2\binding\SAML2ArtifactDecoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml2\binding\SAML2ArtifactEncoder.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\saml2\binding\SAML2ArtifactType0004.h"\r
>\r
</File>\r
<File\r
- RelativePath=".\saml2\binding\SAML2MessageRule.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml2\binding\SAML2POSTDecoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml2\binding\SAML2POSTEncoder.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\saml2\binding\SAML2Redirect.h"\r
>\r
</File>\r
<File\r
- RelativePath=".\saml2\binding\SAML2RedirectDecoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml2\binding\SAML2RedirectEncoder.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\saml2\binding\SAML2SOAPClient.h"\r
>\r
</File>\r
- <File\r
- RelativePath=".\saml2\binding\SAML2SOAPDecoder.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\saml2\binding\SAML2SOAPEncoder.h"\r
- >\r
- </File>\r
</Filter>\r
</Filter>\r
<Filter\r
>\r
</File>\r
<File\r
- RelativePath=".\binding\ClientCertAuthRule.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\binding\GenericRequest.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
- RelativePath=".\binding\MessageFlowRule.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\binding\SAMLArtifact.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
- RelativePath=".\binding\SimpleSigningRule.h"\r
- >\r
- </File>\r
- <File\r
RelativePath=".\binding\SOAPClient.h"\r
>\r
</File>\r
RelativePath=".\binding\URLEncoder.h"\r
>\r
</File>\r
- <File\r
- RelativePath=".\binding\XMLSigningRule.h"\r
- >\r
- </File>\r
</Filter>\r
<Filter\r
Name="zlib"\r
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml1/binding/SAML1ArtifactDecoder.h
- *
- * SAML 1.x Artifact binding/profile message decoder
- */
-
-#include <saml/binding/MessageDecoder.h>
-#include <saml/saml1/core/Protocols.h>
-
-
-namespace opensaml {
- namespace saml1p {
-
- /**
- * SAML 1.x Artifact binding/profile message decoder
- */
- class SAML_API SAML1ArtifactDecoder : public MessageDecoder
- {
- public:
- SAML1ArtifactDecoder(const DOMElement* e);
- virtual ~SAML1ArtifactDecoder() {}
-
- xmltooling::XMLObject* decode(
- std::string& relayState,
- const GenericRequest& genericRequest,
- SecurityPolicy& policy
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml1/binding/SAML1ArtifactEncoder.h
- *
- * SAML 1.x Artifact binding/profile message encoder
- */
-
-#include <saml/binding/MessageEncoder.h>
-
-
-namespace opensaml {
- namespace saml1p {
-
- /**
- * SAML 1.x Artifact binding/profile message encoder
- */
- class SAML_API SAML1ArtifactEncoder : public MessageEncoder
- {
- public:
- SAML1ArtifactEncoder(const DOMElement* e);
- virtual ~SAML1ArtifactEncoder() {}
-
- long encode(
- GenericResponse& genericResponse,
- xmltooling::XMLObject* xmlObject,
- const char* destination,
- const char* recipientID=NULL,
- const char* relayState=NULL,
- const xmltooling::CredentialResolver* credResolver=NULL,
- const XMLCh* sigAlgorithm=NULL
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml1/binding/SAML1MessageRule.h
- *
- * SAML 1.x message extraction rule
- */
-
-#ifndef __saml_1msgrule_h__
-#define __saml_1msgrule_h__
-
-#include <saml/binding/SecurityPolicyRule.h>
-
-
-namespace opensaml {
- namespace saml1p {
- /**
- * SAML 1.x message extraction rule
- */
- class SAML_API SAML1MessageRule : public SecurityPolicyRule
- {
- public:
- SAML1MessageRule(const DOMElement* e) {}
- virtual ~SAML1MessageRule() {}
-
- void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
- };
- };
-};
-
-#endif /* __saml_1msgrule_h__ */
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml1/binding/SAML1POSTDecoder.h
- *
- * SAML 1.x POST binding/profile message decoder
- */
-
-#include <saml/binding/MessageDecoder.h>
-#include <saml/saml1/core/Protocols.h>
-
-
-namespace opensaml {
- namespace saml1p {
-
- /**
- * SAML 1.x POST binding/profile message decoder
- */
- class SAML_API SAML1POSTDecoder : public MessageDecoder
- {
- public:
- SAML1POSTDecoder(const DOMElement* e);
- virtual ~SAML1POSTDecoder() {}
-
- xmltooling::XMLObject* decode(
- std::string& relayState,
- const GenericRequest& genericRequest,
- SecurityPolicy& policy
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml1/binding/SAML1POSTEncoder.h
- *
- * SAML 1.x POST binding/profile message encoder
- */
-
-#include <saml/binding/MessageEncoder.h>
-
-
-namespace opensaml {
- namespace saml1p {
-
- /**
- * SAML 1.x POST binding/profile message encoder
- */
- class SAML_API SAML1POSTEncoder : public MessageEncoder
- {
- public:
- SAML1POSTEncoder(const DOMElement* e);
- virtual ~SAML1POSTEncoder() {}
-
- long encode(
- GenericResponse& genericResponse,
- xmltooling::XMLObject* xmlObject,
- const char* destination,
- const char* recipientID=NULL,
- const char* relayState=NULL,
- const xmltooling::CredentialResolver* credResolver=NULL,
- const XMLCh* sigAlgorithm=NULL
- ) const;
-
- protected:
- /** Pathname of HTML template for transmission of message via POST. */
- std::string m_template;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml1/binding/SAML1SOAPDecoder.h
- *
- * SAML 1.x SOAP binding message decoder
- */
-
-#include <saml/binding/MessageDecoder.h>
-#include <saml/saml1/core/Protocols.h>
-
-
-namespace opensaml {
- namespace saml1p {
-
- /**
- * SAML 1.x SOAP binding message decoder
- */
- class SAML_API SAML1SOAPDecoder : public MessageDecoder
- {
- public:
- SAML1SOAPDecoder(const DOMElement* e);
- virtual ~SAML1SOAPDecoder() {}
-
- xmltooling::XMLObject* decode(
- std::string& relayState,
- const GenericRequest& genericRequest,
- SecurityPolicy& policy
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml1/binding/SAML1SOAPEncoder.h
- *
- * SAML 1.x SOAP binding message encoder
- */
-
-#include <saml/binding/MessageEncoder.h>
-
-
-namespace opensaml {
- namespace saml1p {
-
- /**
- * SAML 1.x POST binding message encoder
- */
- class SAML_API SAML1SOAPEncoder : public MessageEncoder
- {
- public:
- SAML1SOAPEncoder(const DOMElement* e);
- virtual ~SAML1SOAPEncoder() {}
-
- long encode(
- GenericResponse& genericResponse,
- xmltooling::XMLObject* xmlObject,
- const char* destination,
- const char* recipientID=NULL,
- const char* relayState=NULL,
- const xmltooling::CredentialResolver* credResolver=NULL,
- const XMLCh* sigAlgorithm=NULL
- ) const;
- };
-
- };
-};
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPRequest.h"
-#include "saml/binding/SAMLArtifact.h"
-#include "saml1/binding/SAML1ArtifactDecoder.h"
+#include "binding/MessageDecoder.h"
+#include "binding/SAMLArtifact.h"
+#include "saml1/core/Protocols.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
namespace opensaml {
namespace saml1p {
+ class SAML_DLLLOCAL SAML1ArtifactDecoder : public MessageDecoder
+ {
+ public:
+ SAML1ArtifactDecoder(const DOMElement* e) {}
+ virtual ~SAML1ArtifactDecoder() {}
+
+ xmltooling::XMLObject* decode(
+ std::string& relayState,
+ const GenericRequest& genericRequest,
+ SecurityPolicy& policy
+ ) const;
+ };
+
MessageDecoder* SAML_DLLLOCAL SAML1ArtifactDecoderFactory(const DOMElement* const & e)
{
return new SAML1ArtifactDecoder(e);
};
};
-SAML1ArtifactDecoder::SAML1ArtifactDecoder(const DOMElement* e) {}
-
XMLObject* SAML1ArtifactDecoder::decode(
string& relayState,
const GenericRequest& genericRequest,
#include "exceptions.h"
#include "binding/ArtifactMap.h"
#include "binding/HTTPResponse.h"
+#include "binding/MessageEncoder.h"
#include "binding/SAMLArtifact.h"
#include "binding/URLEncoder.h"
-#include "saml1/binding/SAML1ArtifactEncoder.h"
#include "saml1/core/Assertions.h"
+#include "saml1/core/Protocols.h"
#include <log4cpp/Category.hh>
#include <xmltooling/util/NDC.h>
namespace opensaml {
namespace saml1p {
+ class SAML_DLLLOCAL SAML1ArtifactEncoder : public MessageEncoder
+ {
+ public:
+ SAML1ArtifactEncoder(const DOMElement* e) {}
+ virtual ~SAML1ArtifactEncoder() {}
+
+ long encode(
+ GenericResponse& genericResponse,
+ xmltooling::XMLObject* xmlObject,
+ const char* destination,
+ const char* recipientID=NULL,
+ const char* relayState=NULL,
+ const xmltooling::CredentialResolver* credResolver=NULL,
+ const XMLCh* sigAlgorithm=NULL
+ ) const;
+ };
+
MessageEncoder* SAML_DLLLOCAL SAML1ArtifactEncoderFactory(const DOMElement* const & e)
{
return new SAML1ArtifactEncoder(e);
};
};
-SAML1ArtifactEncoder::SAML1ArtifactEncoder(const DOMElement* e) {}
-
long SAML1ArtifactEncoder::encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
#include "internal.h"
#include "exceptions.h"
#include "RootObject.h"
-#include "saml1/binding/SAML1MessageRule.h"
+#include "binding/SecurityPolicyRule.h"
#include "saml1/core/Assertions.h"
#include "saml1/core/Protocols.h"
#include "saml2/core/Assertions.h"
using namespace std;
namespace opensaml {
+
+ class SAML_DLLLOCAL SAML1MessageRule : public SecurityPolicyRule
+ {
+ public:
+ SAML1MessageRule(const DOMElement* e) {}
+ virtual ~SAML1MessageRule() {}
+
+ void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+ };
+
SecurityPolicyRule* SAML_DLLLOCAL SAML1MessageRuleFactory(const DOMElement* const & e)
{
return new SAML1MessageRule(e);
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPRequest.h"
+#include "binding/MessageDecoder.h"
#include "saml1/core/Assertions.h"
-#include "saml1/binding/SAML1POSTDecoder.h"
+#include "saml1/core/Protocols.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
namespace opensaml {
namespace saml1p {
+ class SAML_DLLLOCAL SAML1POSTDecoder : public MessageDecoder
+ {
+ public:
+ SAML1POSTDecoder(const DOMElement* e) {}
+ virtual ~SAML1POSTDecoder() {}
+
+ xmltooling::XMLObject* decode(
+ std::string& relayState,
+ const GenericRequest& genericRequest,
+ SecurityPolicy& policy
+ ) const;
+ };
+
MessageDecoder* SAML_DLLLOCAL SAML1POSTDecoderFactory(const DOMElement* const & e)
{
return new SAML1POSTDecoder(e);
};
};
-SAML1POSTDecoder::SAML1POSTDecoder(const DOMElement* e) {}
-
XMLObject* SAML1POSTDecoder::decode(
string& relayState,
const GenericRequest& genericRequest,
#include "internal.h"
#include "exceptions.h"
-#include "saml1/binding/SAML1POSTEncoder.h"
+#include "binding/MessageEncoder.h"
#include "saml1/core/Protocols.h"
#include <fstream>
namespace opensaml {
namespace saml1p {
+ class SAML_DLLLOCAL SAML1POSTEncoder : public MessageEncoder
+ {
+ public:
+ SAML1POSTEncoder(const DOMElement* e);
+ virtual ~SAML1POSTEncoder() {}
+
+ long encode(
+ GenericResponse& genericResponse,
+ xmltooling::XMLObject* xmlObject,
+ const char* destination,
+ const char* recipientID=NULL,
+ const char* relayState=NULL,
+ const xmltooling::CredentialResolver* credResolver=NULL,
+ const XMLCh* sigAlgorithm=NULL
+ ) const;
+
+ protected:
+ /** Pathname of HTML template for transmission of message via POST. */
+ std::string m_template;
+ };
+
MessageEncoder* SAML_DLLLOCAL SAML1POSTEncoderFactory(const DOMElement* const & e)
{
return new SAML1POSTEncoder(e);
};
};
-static const XMLCh templat[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
+static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
SAML1POSTEncoder::SAML1POSTEncoder(const DOMElement* e)
{
if (e) {
- auto_ptr_char t(e->getAttributeNS(NULL, templat));
+ auto_ptr_char t(e->getAttributeNS(NULL, _template));
if (t.get())
m_template = t.get();
}
if (m_template.empty())
- throw XMLToolingException("SAML1POSTEncoder requires template attribute.");
+ throw XMLToolingException("SAML1POSTEncoder requires template XML attribute.");
}
long SAML1POSTEncoder::encode(
#include "internal.h"
#include "exceptions.h"
-#include "saml1/binding/SAML1SOAPDecoder.h"
+#include "binding/MessageDecoder.h"
+#include "saml1/core/Protocols.h"
#include <log4cpp/Category.hh>
#include <xmltooling/soap/SOAP.h>
namespace opensaml {
namespace saml1p {
+ class SAML_DLLLOCAL SAML1SOAPDecoder : public MessageDecoder
+ {
+ public:
+ SAML1SOAPDecoder(const DOMElement* e) {}
+ virtual ~SAML1SOAPDecoder() {}
+
+ xmltooling::XMLObject* decode(
+ std::string& relayState,
+ const GenericRequest& genericRequest,
+ SecurityPolicy& policy
+ ) const;
+ };
+
MessageDecoder* SAML_DLLLOCAL SAML1SOAPDecoderFactory(const DOMElement* const & e)
{
return new SAML1SOAPDecoder(e);
};
};
-SAML1SOAPDecoder::SAML1SOAPDecoder(const DOMElement* e) {}
-
XMLObject* SAML1SOAPDecoder::decode(
string& relayState,
const GenericRequest& genericRequest,
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPResponse.h"
-#include "saml1/binding/SAML1SOAPEncoder.h"
+#include "binding/MessageEncoder.h"
#include "saml1/core/Protocols.h"
#include <sstream>
namespace opensaml {
namespace saml1p {
+ class SAML_DLLLOCAL SAML1SOAPEncoder : public MessageEncoder
+ {
+ public:
+ SAML1SOAPEncoder(const DOMElement* e) {}
+ virtual ~SAML1SOAPEncoder() {}
+
+ long encode(
+ GenericResponse& genericResponse,
+ xmltooling::XMLObject* xmlObject,
+ const char* destination,
+ const char* recipientID=NULL,
+ const char* relayState=NULL,
+ const xmltooling::CredentialResolver* credResolver=NULL,
+ const XMLCh* sigAlgorithm=NULL
+ ) const;
+ };
+
MessageEncoder* SAML_DLLLOCAL SAML1SOAPEncoderFactory(const DOMElement* const & e)
{
return new SAML1SOAPEncoder(e);
};
};
-SAML1SOAPEncoder::SAML1SOAPEncoder(const DOMElement* e) {}
-
long SAML1SOAPEncoder::encode(
GenericResponse& genericResponse,
XMLObject* xmlObject,
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2ArtifactDecoder.h
- *
- * SAML 2.0 Artifact binding message decoder
- */
-
-#include <saml/binding/MessageDecoder.h>
-
-
-namespace opensaml {
- namespace saml2 {
- class SAML_API Issuer;
- };
-
- namespace saml2p {
-
- /**
- * SAML 2.0 Artifact binding message decoder
- */
- class SAML_API SAML2ArtifactDecoder : public MessageDecoder
- {
- public:
- SAML2ArtifactDecoder(const DOMElement* e);
- virtual ~SAML2ArtifactDecoder() {}
-
- xmltooling::XMLObject* decode(
- std::string& relayState,
- const GenericRequest& genericRequest,
- SecurityPolicy& policy
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2ArtifactEncoder.h
- *
- * SAML 2.0 HTTP-Artifact binding message encoder
- */
-
-#include <saml/binding/MessageEncoder.h>
-
-
-namespace opensaml {
- namespace saml2p {
-
- /**
- * SAML 2.0 HTTP-Artifact binding message encoder
- */
- class SAML_API SAML2ArtifactEncoder : public MessageEncoder
- {
- public:
- SAML2ArtifactEncoder(const DOMElement* e);
- virtual ~SAML2ArtifactEncoder() {}
-
- long encode(
- GenericResponse& genericResponse,
- xmltooling::XMLObject* xmlObject,
- const char* destination,
- const char* recipientID=NULL,
- const char* relayState=NULL,
- const xmltooling::CredentialResolver* credResolver=NULL,
- const XMLCh* sigAlgorithm=NULL
- ) const;
-
- protected:
- /** Pathname of HTML template for transmission of message via POST. */
- std::string m_template;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2MessageRule.h
- *
- * SAML 2.0 message extraction rule
- */
-
-#ifndef __saml_2msgrule_h__
-#define __saml_2msgrule_h__
-
-#include <saml/binding/SecurityPolicyRule.h>
-
-
-namespace opensaml {
- namespace saml2p {
- /**
- * SAML 2.0 message extraction rule
- */
- class SAML_API SAML2MessageRule : public SecurityPolicyRule
- {
- public:
- SAML2MessageRule(const DOMElement* e) {}
- virtual ~SAML2MessageRule() {}
-
- void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
- };
- };
-};
-
-#endif /* __saml_2msgrule_h__ */
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2POSTDecoder.h
- *
- * SAML 2.0 HTTP POST binding message decoder
- */
-
-#include <saml/binding/MessageDecoder.h>
-#include <saml/saml2/core/Assertions.h>
-
-namespace opensaml {
-
- namespace saml2p {
-
- /**
- * SAML 2.0 HTTP POST binding message decoder
- */
- class SAML_API SAML2POSTDecoder : public MessageDecoder
- {
- public:
- SAML2POSTDecoder(const DOMElement* e);
- virtual ~SAML2POSTDecoder() {}
-
- xmltooling::XMLObject* decode(
- std::string& relayState,
- const GenericRequest& genericRequest,
- SecurityPolicy& policy
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2POSTEncoder.h
- *
- * SAML 2.0 HTTP-POST (and -SimpleSign) binding message encoder
- */
-
-#include <saml/binding/MessageEncoder.h>
-
-
-namespace opensaml {
- namespace saml2p {
-
- /**
- * SAML 2.0 HTTP-POST (and -SimpleSign) binding message encoder
- */
- class SAML_API SAML2POSTEncoder : public MessageEncoder
- {
- public:
- SAML2POSTEncoder(const DOMElement* e, bool simple=false);
- virtual ~SAML2POSTEncoder() {}
-
- long encode(
- GenericResponse& genericResponse,
- xmltooling::XMLObject* xmlObject,
- const char* destination,
- const char* recipientID=NULL,
- const char* relayState=NULL,
- const xmltooling::CredentialResolver* credResolver=NULL,
- const XMLCh* sigAlgorithm=NULL
- ) const;
-
- protected:
- /** Pathname of HTML template for transmission of message via POST. */
- std::string m_template;
-
- /** Flag controls signing behavior (XML vs. "simple") */
- bool m_simple;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2RedirectDecoder.h
- *
- * SAML 2.0 HTTP Redirect binding message decoder
- */
-
-#include <saml/binding/MessageDecoder.h>
-
-namespace opensaml {
- namespace saml2p {
-
- /**
- * SAML 2.0 HTTP Redirect binding message decoder
- */
- class SAML_API SAML2RedirectDecoder : public MessageDecoder
- {
- public:
- SAML2RedirectDecoder(const DOMElement* e);
- virtual ~SAML2RedirectDecoder() {}
-
- xmltooling::XMLObject* decode(
- std::string& relayState,
- const GenericRequest& genericRequest,
- SecurityPolicy& policy
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2RedirectEncoder.h
- *
- * SAML 2.0 HTTP-Redirect binding message encoder
- */
-
-#include <saml/binding/MessageEncoder.h>
-
-
-namespace opensaml {
- namespace saml2p {
-
- /**
- * SAML 2.0 HTTP-Redirect binding message encoder
- */
- class SAML_API SAML2RedirectEncoder : public MessageEncoder
- {
- public:
- SAML2RedirectEncoder(const DOMElement* e) {}
- virtual ~SAML2RedirectEncoder() {}
-
- long encode(
- GenericResponse& genericResponse,
- xmltooling::XMLObject* xmlObject,
- const char* destination,
- const char* recipientID=NULL,
- const char* relayState=NULL,
- const xmltooling::CredentialResolver* credResolver=NULL,
- const XMLCh* sigAlgorithm=NULL
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2SOAPDecoder.h
- *
- * SAML 2.0 SOAP binding message decoder
- */
-
-#include <saml/binding/MessageDecoder.h>
-#include <saml/saml2/core/Protocols.h>
-
-
-namespace opensaml {
- namespace saml2p {
-
- /**
- * SAML 2.0 SOAP binding message decoder
- */
- class SAML_API SAML2SOAPDecoder : public MessageDecoder
- {
- public:
- SAML2SOAPDecoder(const DOMElement* e);
- virtual ~SAML2SOAPDecoder() {}
-
- xmltooling::XMLObject* decode(
- std::string& relayState,
- const GenericRequest& genericRequest,
- SecurityPolicy& policy
- ) const;
- };
-
- };
-};
+++ /dev/null
-/*
- * Copyright 2001-2007 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @file saml/saml2/binding/SAML2SOAPEncoder.h
- *
- * SAML 2.0 SOAP binding message encoder
- */
-
-#include <saml/binding/MessageEncoder.h>
-
-
-namespace opensaml {
- namespace saml2p {
-
- /**
- * SAML 2.0 POST binding message encoder
- */
- class SAML_API SAML2SOAPEncoder : public MessageEncoder
- {
- public:
- SAML2SOAPEncoder(const DOMElement* e);
- virtual ~SAML2SOAPEncoder() {}
-
- long encode(
- GenericResponse& genericResponse,
- xmltooling::XMLObject* xmlObject,
- const char* destination,
- const char* recipientID=NULL,
- const char* relayState=NULL,
- const xmltooling::CredentialResolver* credResolver=NULL,
- const XMLCh* sigAlgorithm=NULL
- ) const;
- };
-
- };
-};
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPRequest.h"
-#include "saml/binding/SAMLArtifact.h"
+#include "binding/MessageDecoder.h"
#include "saml2/binding/SAML2Artifact.h"
-#include "saml2/binding/SAML2ArtifactDecoder.h"
#include "saml2/core/Protocols.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2ArtifactDecoder : public MessageDecoder
+ {
+ public:
+ SAML2ArtifactDecoder(const DOMElement* e) {}
+ virtual ~SAML2ArtifactDecoder() {}
+
+ xmltooling::XMLObject* decode(
+ std::string& relayState,
+ const GenericRequest& genericRequest,
+ SecurityPolicy& policy
+ ) const;
+ };
+
MessageDecoder* SAML_DLLLOCAL SAML2ArtifactDecoderFactory(const DOMElement* const & e)
{
return new SAML2ArtifactDecoder(e);
};
};
-SAML2ArtifactDecoder::SAML2ArtifactDecoder(const DOMElement* e) {}
-
XMLObject* SAML2ArtifactDecoder::decode(
string& relayState,
const GenericRequest& genericRequest,
#include "exceptions.h"
#include "binding/ArtifactMap.h"
#include "binding/HTTPResponse.h"
+#include "binding/MessageEncoder.h"
#include "binding/URLEncoder.h"
#include "saml2/binding/SAML2Artifact.h"
-#include "saml2/binding/SAML2ArtifactEncoder.h"
#include "saml2/core/Protocols.h"
#include <fstream>
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2ArtifactEncoder : public MessageEncoder
+ {
+ public:
+ SAML2ArtifactEncoder(const DOMElement* e);
+ virtual ~SAML2ArtifactEncoder() {}
+
+ long encode(
+ GenericResponse& genericResponse,
+ xmltooling::XMLObject* xmlObject,
+ const char* destination,
+ const char* recipientID=NULL,
+ const char* relayState=NULL,
+ const xmltooling::CredentialResolver* credResolver=NULL,
+ const XMLCh* sigAlgorithm=NULL
+ ) const;
+
+ private:
+ std::string m_template;
+ };
+
MessageEncoder* SAML_DLLLOCAL SAML2ArtifactEncoderFactory(const DOMElement* const & e)
{
return new SAML2ArtifactEncoder(e);
};
};
-static const XMLCh templat[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
+static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
SAML2ArtifactEncoder::SAML2ArtifactEncoder(const DOMElement* e)
{
if (e) {
- auto_ptr_char t(e->getAttributeNS(NULL, templat));
+ auto_ptr_char t(e->getAttributeNS(NULL, _template));
if (t.get())
m_template = t.get();
}
#include "internal.h"
#include "exceptions.h"
-#include "saml2/binding/SAML2MessageRule.h"
+#include "binding/SecurityPolicyRule.h"
#include "saml2/core/Protocols.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
using namespace std;
namespace opensaml {
+ class SAML_DLLLOCAL SAML2MessageRule : public SecurityPolicyRule
+ {
+ public:
+ SAML2MessageRule(const DOMElement* e) {}
+ virtual ~SAML2MessageRule() {}
+
+ void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+ };
+
SecurityPolicyRule* SAML_DLLLOCAL SAML2MessageRuleFactory(const DOMElement* const & e)
{
return new SAML2MessageRule(e);
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPRequest.h"
-#include "saml2/binding/SAML2POSTDecoder.h"
+#include "binding/MessageDecoder.h"
#include "saml2/core/Protocols.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2POSTDecoder : public MessageDecoder
+ {
+ public:
+ SAML2POSTDecoder(const DOMElement* e) {}
+ virtual ~SAML2POSTDecoder() {}
+
+ xmltooling::XMLObject* decode(
+ std::string& relayState,
+ const GenericRequest& genericRequest,
+ SecurityPolicy& policy
+ ) const;
+ };
+
MessageDecoder* SAML_DLLLOCAL SAML2POSTDecoderFactory(const DOMElement* const & e)
{
return new SAML2POSTDecoder(e);
};
};
-SAML2POSTDecoder::SAML2POSTDecoder(const DOMElement* e) {}
-
XMLObject* SAML2POSTDecoder::decode(
std::string& relayState,
const GenericRequest& genericRequest,
#include "internal.h"
#include "exceptions.h"
-#include "saml2/binding/SAML2POSTEncoder.h"
+#include "binding/MessageEncoder.h"
#include "saml2/core/Protocols.h"
#include <fstream>
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2POSTEncoder : public MessageEncoder
+ {
+ public:
+ SAML2POSTEncoder(const DOMElement* e, bool simple=false);
+ virtual ~SAML2POSTEncoder() {}
+
+ long encode(
+ GenericResponse& genericResponse,
+ xmltooling::XMLObject* xmlObject,
+ const char* destination,
+ const char* recipientID=NULL,
+ const char* relayState=NULL,
+ const xmltooling::CredentialResolver* credResolver=NULL,
+ const XMLCh* sigAlgorithm=NULL
+ ) const;
+
+ private:
+ std::string m_template;
+ bool m_simple;
+ };
+
MessageEncoder* SAML_DLLLOCAL SAML2POSTEncoderFactory(const DOMElement* const & e)
{
return new SAML2POSTEncoder(e, false);
};
};
-static const XMLCh templat[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
+static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
SAML2POSTEncoder::SAML2POSTEncoder(const DOMElement* e, bool simple) : m_simple(simple)
{
if (e) {
- auto_ptr_char t(e->getAttributeNS(NULL, templat));
+ auto_ptr_char t(e->getAttributeNS(NULL, _template));
if (t.get())
m_template = t.get();
}
if (m_template.empty())
- throw XMLToolingException("SAML2POSTEncoder requires template attribute.");
+ throw XMLToolingException("SAML2POSTEncoder requires template XML attribute.");
}
long SAML2POSTEncoder::encode(
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPRequest.h"
+#include "binding/MessageDecoder.h"
#include "saml2/binding/SAML2Redirect.h"
-#include "saml2/binding/SAML2RedirectDecoder.h"
#include "saml2/core/Protocols.h"
#include "saml2/metadata/Metadata.h"
#include "saml2/metadata/MetadataProvider.h"
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2RedirectDecoder : public MessageDecoder
+ {
+ public:
+ SAML2RedirectDecoder(const DOMElement* e) {}
+ virtual ~SAML2RedirectDecoder() {}
+
+ xmltooling::XMLObject* decode(
+ std::string& relayState,
+ const GenericRequest& genericRequest,
+ SecurityPolicy& policy
+ ) const;
+ };
+
MessageDecoder* SAML_DLLLOCAL SAML2RedirectDecoderFactory(const DOMElement* const & e)
{
return new SAML2RedirectDecoder(e);
};
};
-SAML2RedirectDecoder::SAML2RedirectDecoder(const DOMElement* e) {}
-
XMLObject* SAML2RedirectDecoder::decode(
string& relayState,
const GenericRequest& genericRequest,
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPResponse.h"
+#include "binding/MessageEncoder.h"
#include "binding/URLEncoder.h"
#include "saml2/binding/SAML2Redirect.h"
-#include "saml2/binding/SAML2RedirectEncoder.h"
#include "saml2/core/Protocols.h"
#include <fstream>
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2RedirectEncoder : public MessageEncoder
+ {
+ public:
+ SAML2RedirectEncoder(const DOMElement* e) {}
+ virtual ~SAML2RedirectEncoder() {}
+
+ long encode(
+ GenericResponse& genericResponse,
+ xmltooling::XMLObject* xmlObject,
+ const char* destination,
+ const char* recipientID=NULL,
+ const char* relayState=NULL,
+ const xmltooling::CredentialResolver* credResolver=NULL,
+ const XMLCh* sigAlgorithm=NULL
+ ) const;
+ };
+
MessageEncoder* SAML_DLLLOCAL SAML2RedirectEncoderFactory(const DOMElement* const & e)
{
return new SAML2RedirectEncoder(e);
#include "internal.h"
#include "exceptions.h"
-#include "saml2/binding/SAML2SOAPDecoder.h"
+#include "binding/MessageDecoder.h"
+#include "saml2/core/Protocols.h"
#include <log4cpp/Category.hh>
#include <xmltooling/soap/SOAP.h>
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2SOAPDecoder : public MessageDecoder
+ {
+ public:
+ SAML2SOAPDecoder(const DOMElement* e);
+ virtual ~SAML2SOAPDecoder() {}
+
+ xmltooling::XMLObject* decode(
+ std::string& relayState,
+ const GenericRequest& genericRequest,
+ SecurityPolicy& policy
+ ) const;
+ };
+
MessageDecoder* SAML_DLLLOCAL SAML2SOAPDecoderFactory(const DOMElement* const & e)
{
return new SAML2SOAPDecoder(e);
#include "internal.h"
#include "exceptions.h"
#include "binding/HTTPResponse.h"
-#include "saml2/binding/SAML2SOAPEncoder.h"
+#include "binding/MessageEncoder.h"
#include "saml2/core/Protocols.h"
#include <sstream>
namespace opensaml {
namespace saml2p {
+ class SAML_DLLLOCAL SAML2SOAPEncoder : public MessageEncoder
+ {
+ public:
+ SAML2SOAPEncoder(const DOMElement* e);
+ virtual ~SAML2SOAPEncoder() {}
+
+ long encode(
+ GenericResponse& genericResponse,
+ xmltooling::XMLObject* xmlObject,
+ const char* destination,
+ const char* recipientID=NULL,
+ const char* relayState=NULL,
+ const xmltooling::CredentialResolver* credResolver=NULL,
+ const XMLCh* sigAlgorithm=NULL
+ ) const;
+ };
+
MessageEncoder* SAML_DLLLOCAL SAML2SOAPEncoderFactory(const DOMElement* const & e)
{
return new SAML2SOAPEncoder(e);