X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fbinding%2FArtifactMap.h;h=8a84ee559bea727512ad700a065014d06d2495fd;hb=d8a4f024b89272eae00618fc39e6127b6c191edd;hp=36f533af00f76a98045d595c66d7fb9815c8dc9f;hpb=0559a5cb760882cbe43382dfacfd0a028ade1069;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/binding/ArtifactMap.h b/saml/binding/ArtifactMap.h index 36f533a..8a84ee5 100644 --- a/saml/binding/ArtifactMap.h +++ b/saml/binding/ArtifactMap.h @@ -1,5 +1,5 @@ /* - * 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. @@ -24,9 +24,14 @@ #define __saml_artmap_h__ #include -#include -#include -#include + +#include +#include + +namespace xmltooling { + class XMLTOOL_API StorageService; + class XMLTOOL_API XMLObject; +}; namespace opensaml { @@ -56,7 +61,7 @@ namespace opensaml { * @param e root of a DOM with optional XML attributes for context and artifactTTL * @param storage pointer to a StorageService, or NULL to keep map in memory */ - ArtifactMap(const DOMElement* e, xmltooling::StorageService* storage=NULL); + ArtifactMap(const xercesc::DOMElement* e, xmltooling::StorageService* storage=NULL); virtual ~ArtifactMap(); @@ -85,6 +90,14 @@ namespace opensaml { */ virtual xmltooling::XMLObject* retrieveContent(const SAMLArtifact* artifact, const char* relyingParty=NULL); + /** + * Retrieves the relying party to whom the artifact was issued. + * + * @param artifact the artifact to check + * @return entityID of the party to whom the artifact was issued, if any + */ + virtual std::string getRelyingParty(const SAMLArtifact* artifact); + private: xmltooling::StorageService* m_storage; std::string m_context;