X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsignature%2FSignableObject.h;h=9f0e9922c55a4e5a02f16a3f8da38dd8debd37ea;hb=932cfaae2176c2eba1a9938dc420591a9551a7f3;hp=10cbb73b8cfdc16bd5ad9a5ea48167cee8dc6229;hpb=bb6f92163780b968239c19fdfbe22c0a0a4cd35a;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/signature/SignableObject.h b/saml/signature/SignableObject.h index 10cbb73..9f0e992 100644 --- a/saml/signature/SignableObject.h +++ b/saml/signature/SignableObject.h @@ -1,65 +1,64 @@ -/* - * Copyright 2001-2006 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 SignableObject.h - * - * Base class for SAML objects that can be signed. - */ - -#ifndef __saml_signable_h__ -#define __saml_signable_h__ - -#include -#include -#include - -namespace opensaml { - - /** - * Base class for SAML objects that can be signed. - */ - class SAML_API SignableObject : public virtual xmltooling::XMLObject - { - public: - virtual ~SignableObject() {} - - /** - * Returns the XML ID for the object being signed, for input to the - * reference creation process. - * - * @return XML ID or NULL if not set yet - */ - virtual const XMLCh* getId() const=0; - - /** - * 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); - } - - protected: - SignableObject() {} - }; - -}; - -#endif /* __saml_signable_h__ */ +/* + * 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/signature/SignableObject.h + * + * Base class for SAML objects that can be signed. + */ + +#ifndef __saml_signable_h__ +#define __saml_signable_h__ + +#include +#include +#include + +namespace opensaml { + + /** + * Base class for SAML objects that can be signed. + */ + 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); + } + + /** + * Returns the enveloped Signature from the object. + * + * @return the enveloped Signature, or NULL + */ + virtual xmlsignature::Signature* getSignature() const=0; + + protected: + SignableObject() {} + }; + +}; + +#endif /* __saml_signable_h__ */