X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fsignature%2FSignature.h;h=d26ccb89f27aa8e1ccd226d30ffb97c3c9c2570a;hb=6505807a62569ce65803b448b07a6872c6af2512;hp=0896ce9a0e091d5c8f212a77bbf83e7c6a4c4bae;hpb=5cb314df178f78c6fa7b9826c2c5a5298ec7a473;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/signature/Signature.h b/xmltooling/signature/Signature.h index 0896ce9..d26ccb8 100644 --- a/xmltooling/signature/Signature.h +++ b/xmltooling/signature/Signature.h @@ -122,8 +122,10 @@ namespace xmlsignature { /** * Compute and append the signature based on the assigned * ContentReference, KeyInfo, and signing key. + * + * @param credential optional source of signing key and KeyInfo */ - virtual void sign()=0; + virtual void sign(const xmltooling::Credential* credential=NULL)=0; /** * Type-safe clone operation. @@ -187,7 +189,11 @@ namespace xmlsignature { class XMLTOOL_API SignatureBuilder : public xmltooling::XMLObjectBuilder { public: +#ifdef HAVE_COVARIANT_RETURNS virtual Signature* buildObject( +#else + virtual xmltooling::XMLObject* buildObject( +#endif const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix=NULL, const xmltooling::QName* schemaType=NULL ) const;