X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsignature%2FSignableObject.h;h=bd57adeb99c2b08ec30e6ccf250a71c0125a3c04;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=9f0e9922c55a4e5a02f16a3f8da38dd8debd37ea;hpb=932cfaae2176c2eba1a9938dc420591a9551a7f3;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/signature/SignableObject.h b/saml/signature/SignableObject.h index 9f0e992..bd57ade 100644 --- a/saml/signature/SignableObject.h +++ b/saml/signature/SignableObject.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,12 @@ #define __saml_signable_h__ #include -#include #include +namespace xmlsignature { + class XMLTOOL_API Signature; +}; + namespace opensaml { /** @@ -35,28 +38,24 @@ namespace opensaml { class SAML_API SignableObject : public virtual xmltooling::XMLObject { public: - virtual ~SignableObject() {} - - /** - * Gets a new ContentReference object bound to this object. - * It's lifetime must not outlast this object, so it should - * generally be set into a Signature owned by the object. - * - * @return a new ContentReference - */ - virtual ContentReference* getContentReference() const { - return new ContentReference(*this); - } + virtual ~SignableObject(); /** * Returns the enveloped Signature from the object. * - * @return the enveloped Signature, or NULL + * @return the enveloped Signature, or nullptr */ virtual xmlsignature::Signature* getSignature() const=0; + /** + * Sets an enveloped Signature in the object. + * + * @param sig the enveloped Signature, or nullptr + */ + virtual void setSignature(xmlsignature::Signature* sig)=0; + protected: - SignableObject() {} + SignableObject(); }; };