/*
- * Copyright 2001-2006 Internet2
+ * 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.
#ifndef __xmltooling_xmlobj_h__
#define __xmltooling_xmlobj_h__
+#include <xmltooling/QName.h>
+#include <xmltooling/Namespace.h>
+
#include <set>
#include <list>
#include <vector>
#include <xercesc/dom/DOM.hpp>
-#include <xmltooling/QName.h>
-#include <xmltooling/Namespace.h>
using namespace xercesc;
namespace xmltooling {
+#ifndef XMLTOOLING_NO_XMLSEC
+ class XMLTOOL_API Credential;
+#endif
+
/**
* Object that represents an XML Element that has been unmarshalled into this C++ object.
*/
*
* @param document the DOM document the marshalled element will be placed in, or NULL
* @param sigs ordered array of signatures to create after marshalling is complete
+ * @param credential optional credential to supply signing key and related info
* @return the DOM element representing this XMLObject
*
* @throws MarshallingException thrown if there is a problem marshalling the given object
DOMDocument* document=NULL
#ifndef XMLTOOLING_NO_XMLSEC
,const std::vector<xmlsignature::Signature*>* sigs=NULL
+ ,const Credential* credential=NULL
#endif
) const=0;
*
* @param parentElement the parent element to append the resulting DOM tree
* @param sigs ordered array of signatures to create after marshalling is complete
+ * @param credential optional credential to supply signing key and related info
* @return the marshalled element tree
* @throws MarshallingException thrown if the given XMLObject can not be marshalled.
DOMElement* parentElement
#ifndef XMLTOOLING_NO_XMLSEC
,const std::vector<xmlsignature::Signature*>* sigs=NULL
+ ,const Credential* credential=NULL
#endif
) const=0;