#include <ctime>
#include <vector>
+#include <xmltooling/unicode.h>
#if defined (_MSC_VER)
#pragma warning( push )
*
* @param role the peer role element/type or NULL
*/
- void setRole(const xmltooling::QName* role) {
- delete m_role;
- m_role = role ? new xmltooling::QName(*role) : NULL;
- }
+ void setRole(const xmltooling::QName* role);
/**
* Sets a TrustEngine for the policy.
}
}
+void SecurityPolicy::setRole(const xmltooling::QName* role)
+{
+ delete m_role;
+ m_role = role ? new xmltooling::QName(*role) : NULL;
+}
+
MetadataProvider::Criteria& SecurityPolicy::getMetadataProviderCriteria() const
{
if (!m_metadataCriteria)
/**
* SimpleSigningRule.cpp
*
- * Blob-oriented signature checking SecurityPolicyRule
+ * Blob-oriented signature checking SecurityPolicyRule.
*/
#include "internal.h"
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/io/HTTPRequest.h>
#include <xmltooling/security/SignatureTrustEngine.h>
+#include <xmltooling/signature/KeyInfo.h>
+#include <xmltooling/signature/Signature.h>
using namespace opensaml::saml2md;
using namespace opensaml;
#include <xmltooling/logging.h>
#include <xmltooling/security/SignatureTrustEngine.h>
+#include <xmltooling/signature/Signature.h>
using namespace opensaml::saml2md;
using namespace opensaml;
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* SAML1POSTEncoder.cpp
*
- * SAML 1.x POST binding/profile message encoder
+ * SAML 1.x POST binding/profile message encoder.
*/
#include "internal.h"
#include <xmltooling/io/HTTPResponse.h>
#include <xmltooling/logging.h>
#include <xmltooling/XMLToolingConfig.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/NDC.h>
#include <xmltooling/util/PathResolver.h>
#include <xmltooling/util/TemplateEngine.h>
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* SAML1SOAPEncoder.cpp
*
- * SAML 1.x SOAP binding message encoder
+ * SAML 1.x SOAP binding message encoder.
*/
#include "internal.h"
#include <sstream>
#include <xmltooling/logging.h>
#include <xmltooling/io/HTTPResponse.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/NDC.h>
#include <xmltooling/soap/SOAP.h>
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* @file saml/saml1/core/Assertions.h
*
- * XMLObjects representing the SAML 1.x Assertions schema
+ * XMLObjects representing the SAML 1.x Assertions schema.
*/
#ifndef __saml1_assertions_h__
#include <saml/util/SAMLConstants.h>
#include <xmltooling/ElementProxy.h>
-#include <xmltooling/XMLObjectBuilder.h>
-#include <xmltooling/signature/KeyInfo.h>
-#include <xmltooling/signature/Signature.h>
-#include <xmltooling/util/DateTime.h>
+#include <xmltooling/ConcreteXMLObjectBuilder.h>
#define DECL_SAML1OBJECTBUILDER(cname) \
DECL_XMLOBJECTBUILDER(SAML_API,cname,samlconstants::SAML1_NS,samlconstants::SAML1_PREFIX)
+namespace xmltooling {
+ class XMLTOOL_API DateTime;
+};
+
+namespace xmlsignature {
+ class XMLTOOL_API KeyInfo;
+ class XMLTOOL_API Signature;
+};
+
namespace opensaml {
/**
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* @file saml/saml1/core/Protocols.h
*
- * XMLObjects representing the SAML 1.x Protocols schema
+ * XMLObjects representing the SAML 1.x Protocols schema.
*/
#ifndef __saml1_protocols_h__
#include <saml/RootObject.h>
#include <saml/util/SAMLConstants.h>
-#include <xmltooling/XMLObjectBuilder.h>
-#include <xmltooling/signature/KeyInfo.h>
-#include <xmltooling/signature/Signature.h>
-#include <xmltooling/util/DateTime.h>
+#include <xmltooling/ConcreteXMLObjectBuilder.h>
+#include <xmltooling/ElementExtensibleXMLObject.h>
#define DECL_SAML1POBJECTBUILDER(cname) \
DECL_XMLOBJECTBUILDER(SAML_API,cname,samlconstants::SAML1P_NS,samlconstants::SAML1P_PREFIX)
+namespace xmltooling {
+ class XMLTOOL_API DateTime;
+};
+
+namespace xmlsignature {
+ class XMLTOOL_API KeyInfo;
+ class XMLTOOL_API Signature;
+};
+
namespace opensaml {
namespace saml1 {
/**
* AssertionsImpl.cpp
*
- * Implementation classes for SAML 1.x Assertions schema
+ * Implementation classes for SAML 1.x Assertions schema.
*/
#include "internal.h"
#include "exceptions.h"
#include "saml1/core/Assertions.h"
+#include "signature/ContentReference.h"
#include <xmltooling/AbstractComplexElement.h>
#include <xmltooling/AbstractSimpleElement.h>
#include <xmltooling/impl/AnyElement.h>
#include <xmltooling/io/AbstractXMLObjectMarshaller.h>
#include <xmltooling/io/AbstractXMLObjectUnmarshaller.h>
+#include <xmltooling/signature/KeyInfo.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/XMLHelper.h>
#include <ctime>
const_cast<AssertionImpl*>(this)->m_AssertionID=SAMLConfig::getConfig().generateIdentifier();
domElement->setAttributeNS(NULL, ASSERTIONID_ATTRIB_NAME, m_AssertionID);
if (*m_MinorVersion!=chDigit_0) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE\r
+#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
domElement->setIdAttributeNS(NULL, ASSERTIONID_ATTRIB_NAME, true);
-#else\r
+#else
domElement->setIdAttributeNS(NULL, ASSERTIONID_ATTRIB_NAME);
#endif
}
// Standard processing, but then we check IDness.
AbstractXMLObjectUnmarshaller::unmarshallAttributes(domElement);
if (m_AssertionID && (!m_MinorVersion || *m_MinorVersion!=chDigit_0)) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE\r
+#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
const_cast<DOMElement*>(domElement)->setIdAttributeNS(NULL, ASSERTIONID_ATTRIB_NAME, true);
-#else\r
+#else
const_cast<DOMElement*>(domElement)->setIdAttributeNS(NULL, ASSERTIONID_ATTRIB_NAME);
#endif
}
/**
* ProtocolsImpl.cpp
*
- * Implementation classes for SAML 1.x Protocols schema
+ * Implementation classes for SAML 1.x Protocols schema.
*/
#include "internal.h"
#include "exceptions.h"
#include "saml1/core/Assertions.h"
#include "saml1/core/Protocols.h"
+#include "signature/ContentReference.h"
#include <xmltooling/AbstractComplexElement.h>
#include <xmltooling/AbstractSimpleElement.h>
#include <xmltooling/impl/AnyElement.h>
#include <xmltooling/io/AbstractXMLObjectMarshaller.h>
#include <xmltooling/io/AbstractXMLObjectUnmarshaller.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/XMLHelper.h>
#include <ctime>
const_cast<RequestAbstractTypeImpl*>(this)->m_RequestID=SAMLConfig::getConfig().generateIdentifier();
domElement->setAttributeNS(NULL, REQUESTID_ATTRIB_NAME, m_RequestID);
if (*m_MinorVersion!=chDigit_0) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE\r
+#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
domElement->setIdAttributeNS(NULL, REQUESTID_ATTRIB_NAME, true);
#else
domElement->setIdAttributeNS(NULL, REQUESTID_ATTRIB_NAME);
// Standard processing, but then we check IDness.
AbstractXMLObjectUnmarshaller::unmarshallAttributes(domElement);
if (m_RequestID && (!m_MinorVersion || *m_MinorVersion!=chDigit_0)) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE\r
+#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
const_cast<DOMElement*>(domElement)->setIdAttributeNS(NULL, REQUESTID_ATTRIB_NAME, true);
#else
const_cast<DOMElement*>(domElement)->setIdAttributeNS(NULL, REQUESTID_ATTRIB_NAME);
const_cast<ResponseAbstractTypeImpl*>(this)->m_ResponseID=SAMLConfig::getConfig().generateIdentifier();
domElement->setAttributeNS(NULL, RESPONSEID_ATTRIB_NAME, m_ResponseID);
if (*m_MinorVersion!=chDigit_0) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE\r
+#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
domElement->setIdAttributeNS(NULL, RESPONSEID_ATTRIB_NAME, true);
#else
domElement->setIdAttributeNS(NULL, RESPONSEID_ATTRIB_NAME);
// Standard processing, but then we check IDness.
AbstractXMLObjectUnmarshaller::unmarshallAttributes(domElement);
if (m_ResponseID && (!m_MinorVersion || *m_MinorVersion!=chDigit_0)) {
-#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE\r
+#ifdef XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE
const_cast<DOMElement*>(domElement)->setIdAttributeNS(NULL, RESPONSEID_ATTRIB_NAME, true);
#else
const_cast<DOMElement*>(domElement)->setIdAttributeNS(NULL, RESPONSEID_ATTRIB_NAME);
/**
* SAML2ArtifactEncoder.cpp
*
- * SAML 2.0 HTTP-Artifact binding message encoder
+ * SAML 2.0 HTTP-Artifact binding message encoder.
*/
#include "internal.h"
#include "saml2/binding/SAML2Artifact.h"
#include "saml2/core/Protocols.h"
#include "saml2/metadata/Metadata.h"
+#include "signature/ContentReference.h"
#include <fstream>
#include <sstream>
#include <xmltooling/logging.h>
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/io/HTTPResponse.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/NDC.h>
#include <xmltooling/util/PathResolver.h>
#include <xmltooling/util/TemplateEngine.h>
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* SAML2ECPEncoder.cpp
*
- * SAML 2.0 ECP profile message encoder
+ * SAML 2.0 ECP profile message encoder.
*/
#include "internal.h"
#include <xmltooling/impl/AnyElement.h>
#include <xmltooling/io/HTTPResponse.h>
#include <xmltooling/util/NDC.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/soap/SOAP.h>
using namespace samlconstants;
/**
* SAML2POSTEncoder.cpp
*
- * SAML 2.0 HTTP-POST binding message encoder
+ * SAML 2.0 HTTP-POST binding message encoder.
*/
#include "internal.h"
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/io/HTTPResponse.h>
#include <xmltooling/security/Credential.h>
+#include <xmltooling/signature/KeyInfo.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/NDC.h>
#include <xmltooling/util/PathResolver.h>
#include <xmltooling/util/TemplateEngine.h>
/**
* SAML2RedirectEncoder.cpp
*
- * SAML 2.0 HTTP-POST binding message encoder
+ * SAML 2.0 HTTP-POST binding message encoder.
*/
#include "internal.h"
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/io/HTTPResponse.h>
#include <xmltooling/security/Credential.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/NDC.h>
#include <xmltooling/util/URLEncoder.h>
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* SAML2SOAPEncoder.cpp
*
- * SAML 2.0 SOAP binding message encoder
+ * SAML 2.0 SOAP binding message encoder.
*/
#include "internal.h"
#include <xmltooling/logging.h>
#include <xmltooling/io/HTTPResponse.h>
#include <xmltooling/util/NDC.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/soap/SOAP.h>
using namespace opensaml::saml2p;
/**
* @file saml/saml2/core/Assertions.h
*
- * XMLObjects representing the SAML 2.0 Assertions schema
+ * XMLObjects representing the SAML 2.0 Assertions schema.
*/
#ifndef __saml2_assertions_h__
#include <saml/Assertion.h>
#include <saml/util/SAMLConstants.h>
-#include <xmltooling/XMLObjectBuilder.h>
-#include <xmltooling/encryption/Encryption.h>
-#include <xmltooling/security/CredentialCriteria.h>
-#include <xmltooling/security/CredentialResolver.h>
-#include <xmltooling/signature/Signature.h>
-#include <xmltooling/util/DateTime.h>
+#include <xmltooling/ConcreteXMLObjectBuilder.h>
+#include <xmltooling/ElementProxy.h>
#define DECL_SAML2OBJECTBUILDER(cname) \
DECL_XMLOBJECTBUILDER(SAML_API,cname,samlconstants::SAML20_NS,samlconstants::SAML20_PREFIX)
+namespace xmltooling {
+ class XMLTOOL_API CredentialCriteria;
+ class XMLTOOL_API CredentialResolver;
+ class XMLTOOL_API DateTime;
+};
+
+namespace xmlencryption {
+ class XMLTOOL_API EncryptedData;
+ class XMLTOOL_API EncryptedKey;
+};
+
+namespace xmlsignature {
+ class XMLTOOL_API KeyInfo;
+ class XMLTOOL_API Signature;
+};
+
namespace opensaml {
namespace saml2md {
/**
* Assertions20Impl.cpp
*
- * Implementation classes for SAML 2.0 Assertions schema
+ * Implementation classes for SAML 2.0 Assertions schema.
*/
#include "internal.h"
#include "exceptions.h"
#include "saml/encryption/EncryptedKeyResolver.h"
#include "saml2/core/Assertions.h"
+#include "signature/ContentReference.h"
#include <xmltooling/AbstractComplexElement.h>
#include <xmltooling/AbstractSimpleElement.h>
#include <xmltooling/impl/AnyElement.h>
#include <xmltooling/io/AbstractXMLObjectMarshaller.h>
#include <xmltooling/io/AbstractXMLObjectUnmarshaller.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/XMLHelper.h>
#include <ctime>
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* Protocols20Impl.cpp
*
- * Implementation classes for SAML 2.0 Protocols schema
+ * Implementation classes for SAML 2.0 Protocols schema.
*/
#include "internal.h"
#include "exceptions.h"
#include "saml2/core/Protocols.h"
+#include "signature/ContentReference.h"
#include <xmltooling/AbstractComplexElement.h>
#include <xmltooling/AbstractSimpleElement.h>
+#include <xmltooling/encryption/Encryption.h>
#include <xmltooling/impl/AnyElement.h>
#include <xmltooling/io/AbstractXMLObjectMarshaller.h>
#include <xmltooling/io/AbstractXMLObjectUnmarshaller.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/XMLHelper.h>
#include <ctime>
#include <saml/saml2/metadata/ObservableMetadataProvider.h>
-#include <xmltooling/security/Credential.h>
-#include <xmltooling/security/CredentialCriteria.h>
-#include <xmltooling/util/Threads.h>
-
namespace xmltooling {
+ class XMLTOOL_API Credential;
+ class XMLTOOL_API CredentialCriteria;
class XMLTOOL_API KeyInfoResolver;
+ class XMLTOOL_API Mutex;
};
namespace opensaml {
class SAML_API MetadataFilter;
+#if defined (_MSC_VER)
+ #pragma warning( push )
+ #pragma warning( disable : 4251 )
+#endif
+
/**
* Base class for caching metadata providers.
*/
mutable credmap_t m_credentialMap;
const credmap_t::mapped_type& resolveCredentials(const RoleDescriptor& role) const;
};
+
+#if defined (_MSC_VER)
+ #pragma warning( pop )
+ #pragma warning( disable : 4251 )
+#endif
};
};
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <saml/saml2/metadata/AbstractMetadataProvider.h>
+namespace xmltooling {
+ class XMLTOOL_API RWLock;
+};
+
namespace opensaml {
namespace saml2md {
virtual ~DynamicMetadataProvider();
- xmltooling::Lockable* lock() {
- m_lock->rdlock();
- return this;
- }
-
- void unlock() {
- m_lock->unlock();
- }
-
- void init() {
- }
-
- const xmltooling::XMLObject* getMetadata() const {
- throw MetadataException("getMetadata operation not implemented on this provider.");
- }
-
+ void init();
+ xmltooling::Lockable* lock();
+ void unlock();
+ const xmltooling::XMLObject* getMetadata() const;
std::pair<const EntityDescriptor*,const RoleDescriptor*> getEntityDescriptor(const Criteria& criteria) const;
protected:
/**
* @file saml/saml2/metadata/Metadata.h
*
- * XMLObjects representing the SAML 2.0 Metadata schema
+ * XMLObjects representing the SAML 2.0 Metadata schema.
*/
#ifndef __saml2_metadata_h__
#define DECL_SAML2MDOBJECTBUILDER(cname) \
DECL_XMLOBJECTBUILDER(SAML_API,cname,samlconstants::SAML20MD_NS,samlconstants::SAML20MD_PREFIX)
+namespace xmlencryption {
+ class XMLTOOL_API EncryptionMethod;
+};
+
namespace opensaml {
/**
* Processes metadata after it's been unmarshalled.
*/
-#include <saml/base.h>
-#include <saml/exceptions.h>
#include <saml/saml2/metadata/MetadataProvider.h>
-#include <xmltooling/XMLObject.h>
-
#ifndef __saml2_metadatafilt_h__
#define __saml2_metadatafilt_h__
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <saml/base.h>
#include <xmltooling/exceptions.h>
-#include <xmltooling/XMLObject.h>
#include <xmltooling/security/CredentialResolver.h>
+namespace xmltooling {
+ class XMLTOOL_API QName;
+ class XMLTOOL_API XMLObject;
+};
+
namespace opensaml {
class SAML_API SAMLArtifact;
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <xercesc/util/XMLUniDefs.hpp>
#include <xmltooling/XMLToolingConfig.h>
+#include <xmltooling/security/Credential.h>
#include <xmltooling/security/KeyInfoResolver.h>
#include <xmltooling/util/XMLHelper.h>
delete m_lock;
}
+const XMLObject* DynamicMetadataProvider::getMetadata() const
+{
+ throw MetadataException("getMetadata operation not implemented on this provider.");
+}
+
+Lockable* DynamicMetadataProvider::lock()
+{
+ m_lock->rdlock();
+ return this;
+}
+
+void DynamicMetadataProvider::unlock()
+{
+ m_lock->unlock();
+}
+
+void DynamicMetadataProvider::init()
+{
+}
+
pair<const EntityDescriptor*,const RoleDescriptor*> DynamicMetadataProvider::getEntityDescriptor(const Criteria& criteria) const
{
// Check cache while holding the read lock.
/**
* MetadataImpl.cpp
*
- * Implementation classes for SAML 2.0 Metadata schema
+ * Implementation classes for SAML 2.0 Metadata schema.
*/
#include "internal.h"
#include "exceptions.h"
#include "saml2/metadata/Metadata.h"
+#include "signature/ContentReference.h"
#include <xmltooling/AbstractComplexElement.h>
#include <xmltooling/AbstractSimpleElement.h>
+#include <xmltooling/encryption/Encryption.h>
#include <xmltooling/impl/AnyElement.h>
#include <xmltooling/io/AbstractXMLObjectMarshaller.h>
#include <xmltooling/io/AbstractXMLObjectUnmarshaller.h>
+#include <xmltooling/signature/KeyInfo.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/util/XMLHelper.h>
#include <ctime>
/**
* MetadataProvider.cpp
*
- * Registration of factories for built-in providers
+ * Registration of factories for built-in providers.
*/
#include "internal.h"
#include "saml2/metadata/MetadataFilter.h"
#include "saml2/metadata/MetadataProvider.h"
+#include <algorithm>
#include <xercesc/util/XMLUniDefs.hpp>
#include <xmltooling/logging.h>
+#include <xmltooling/unicode.h>
#include <xmltooling/util/NDC.h>
#include <xmltooling/util/XMLHelper.h>
/**
* MetadataSchemaValidators.cpp
*
- * Schema-based validators for SAML 2.0 Metadata classes
+ * Schema-based validators for SAML 2.0 Metadata classes.
*/
#include "internal.h"
#include "exceptions.h"
#include "saml2/metadata/Metadata.h"
+#include <xmltooling/encryption/Encryption.h>
#include <xmltooling/validation/ValidatorSuite.h>
using namespace opensaml::saml2md;
#include <xmltooling/security/CredentialCriteria.h>
#include <xmltooling/security/CredentialResolver.h>
#include <xmltooling/security/SignatureTrustEngine.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/signature/SignatureValidator.h>
#include <xmltooling/util/NDC.h>
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* @file saml/signature/ContentReference.h
*
- * SAML-specific signature reference profile
+ * SAML-specific signature reference profile.
*/
#ifndef __saml_sigref_h__
#define __saml_sigref_h__
#include <saml/base.h>
-#include <xmltooling/XMLObject.h>
-#include <xmltooling/signature/ContentReference.h>
#include <set>
#include <string>
+#ifdef HAVE_GOOD_STL
+# include <xmltooling/unicode.h>
+#endif
+#include <xmltooling/signature/ContentReference.h>
+
+namespace xmltooling {
+ class XMLTOOL_API Namespace;
+ class XMLTOOL_API XMLObject;
+};
namespace opensaml {
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#define __saml_signable_h__
#include <saml/base.h>
-#include <saml/signature/ContentReference.h>
#include <xmltooling/XMLObject.h>
+namespace xmlsignature {
+ class XMLTOOL_API Signature;
+};
+
namespace opensaml {
/**
/**
* SignatureProfileValidator.cpp
*
- * SAML-specific signature verification
+ * SAML-specific signature verification.
*/
#include "internal.h"
#include "exceptions.h"
+#include "signature/SignableObject.h"
#include "signature/SignatureProfileValidator.h"
#include <xmltooling/signature/Signature.h>
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* @file saml/signature/SignatureProfileValidator.h
*
- * SAML-specific signature profile validator
+ * SAML-specific signature profile validator.
*/
#ifndef __saml_sigval_h__
#define __saml_sigval_h__
#include <saml/base.h>
-#include <saml/signature/SignableObject.h>
#include <xmltooling/validation/Validator.h>
+namespace xmlsignature {
+ class XMLTOOL_API Signature;
+};
+
namespace opensaml {
/**
/**
* @file saml/util/SAMLConstants.h
*
- * SAML XML namespace constants
+ * SAML XML namespace constants.
*/
#ifndef __saml_xmlconstants_h__
#define __saml_xmlconstants_h__
-#include <xmltooling/util/XMLConstants.h>
+#include <saml/base.h>
+#include <xercesc/util/XercesDefs.hpp>
/**
* SAML related constants.
/*\r
- * Copyright 2001-2007 Internet2\r
+ * Copyright 2001-2009 Internet2\r
* \r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
#include <xmltooling/io/HTTPRequest.h>\r
#include <xmltooling/io/HTTPResponse.h>\r
#include <xmltooling/security/Credential.h>\r
+#include <xmltooling/security/CredentialCriteria.h>\r
#include <xmltooling/security/TrustEngine.h>\r
#include <xmltooling/util/URLEncoder.h>\r
\r
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <cxxtest/TestSuite.h>
-#include <fstream>
#include <saml/exceptions.h>
#include <saml/util/SAMLConstants.h>
+
+#include <fstream>
#include <xmltooling/XMLObject.h>
#include <xmltooling/XMLObjectBuilder.h>
#include <xmltooling/XMLToolingConfig.h>
+#include <xmltooling/util/DateTime.h>
#include <xmltooling/validation/Validator.h>
using namespace xmltooling;
/*\r
- * Copyright 2001-2007 Internet2\r
+ * Copyright 2001-2009 Internet2\r
* \r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
#include <saml/saml1/core/Assertions.h>\r
#include <saml/saml1/core/Protocols.h>\r
#include <saml/saml1/binding/SAMLArtifactType0001.h>\r
+#include <xmltooling/signature/Signature.h>\r
#include <xmltooling/validation/ValidatorSuite.h>\r
\r
using namespace opensaml::saml1p;\r
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "internal.h"
#include <saml/saml2/core/Assertions.h>
#include <saml/util/SAMLConstants.h>
+#include <xmltooling/signature/KeyInfo.h>
using namespace opensaml::saml2;
-using namespace xmlsignature;
+using xmlsignature::KeyInfoBuilder;
//TODO need testing for ElementProxy and wildcard attributes/elements
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "internal.h"
#include <saml/saml2/core/Protocols.h>
#include <saml/util/SAMLConstants.h>
+#include <xmltooling/signature/Signature.h>
using namespace opensaml::saml2p;
using namespace opensaml::saml2;
#include <xmltooling/security/CredentialCriteria.h>
#include <xmltooling/security/CredentialResolver.h>
#include <xmltooling/signature/KeyInfo.h>
+#include <xmltooling/signature/Signature.h>
#include <xmltooling/signature/SignatureValidator.h>
using namespace xmlsignature;