virtual ~MessageEncoder() {}
/**
+ * Indicates whether the encoding format requires that messages be as compact as possible.
+ *
+ * @return true iff the encoding has size constraints
+ */
+ virtual bool isCompact() const {
+ return false;
+ }
+
+ /**
* Interface to caller-supplied artifact generation mechanism.
*
* Generating an artifact for storage and retrieval requires knowledge of
* @param recipientID optional entityID of message recipient
* @param relayState optional RelayState value to accompany message
* @param credential optional Credential to supply signing key
- * @param sigAlgorithm optional signature algorithm identifier
+ * @param signatureAlg optional signature algorithm identifier
+ * @param digestAlg optional reference digest algorithm identifier
*/
virtual long encode(
GenericResponse& genericResponse,
const char* recipientID=NULL,
const char* relayState=NULL,
const xmltooling::Credential* credential=NULL,
- const XMLCh* sigAlgorithm=NULL
+ const XMLCh* signatureAlg=NULL,
+ const XMLCh* digestAlg=NULL
) const=0;
protected: