#include <XKMSMessageFactory.hpp>
The XKMSMessageFactory classes are used to provide an interface to applicataions to produce and consume XKMS messages. No logic is defined within the class, other than that necessary to (for example) generate a response message using a request message as a base.
Client apps that wish to make use of XKMS should generally use the XKMSClient class.
Constructors and Destructors | |
virtual | ~XKMSMessageFactory () |
XKMSMessageFactory () | |
Public Member Functions | |
Methods to build XKMS message objects from existing XML | |
virtual XKMSMessageAbstractType * | newMessageFromDOM (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *elt)=0 |
Load a message from an existing XML document. | |
Methods for building new X-KISS messages from scratch | |
virtual XKMSCompoundRequest * | createCompoundRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, const XMLCh *id=NULL)=0 |
Create a new <CompoundRequest> message. | |
virtual XKMSCompoundRequest * | createCompoundRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, const XMLCh *id=NULL)=0 |
Create a new <CompoundRequest> message and surrounding document. | |
virtual XKMSLocateRequest * | createLocateRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, const XMLCh *id=NULL)=0 |
Create a new <LocateRequest> message. | |
virtual XKMSLocateRequest * | createLocateRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, const XMLCh *id=NULL)=0 |
Create a new <LocateRequest> message and surrounding document. | |
virtual XKMSValidateRequest * | createValidateRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, const XMLCh *id=NULL)=0 |
Create a new <ValidateRequest> message. | |
virtual XKMSValidateRequest * | createValidateRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, const XMLCh *id=NULL)=0 |
Create a new <ValidateRequest> message and surrounding document. | |
virtual XKMSPendingRequest * | createPendingRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, const XMLCh *id=NULL)=0 |
Create a new <PendingRequest> message. | |
virtual XKMSPendingRequest * | createPendingRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, const XMLCh *id=NULL)=0 |
Create a new <PendingRequest> message and surrounding document. | |
virtual XKMSStatusRequest * | createStatusRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, const XMLCh *id=NULL)=0 |
Create a new <StatusRequest> message. | |
virtual XKMSStatusRequest * | createStatusRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, const XMLCh *id=NULL)=0 |
Create a new <StatusRequest> message and surrounding document. | |
virtual XKMSLocateResult * | createLocateResult (XKMSLocateRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <LocateResult> message. | |
virtual XKMSLocateResult * | createLocateResult (XKMSLocateRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <LocateResult> message and surrounding document. | |
virtual XKMSValidateResult * | createValidateResult (XKMSValidateRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <ValidateResult> message. | |
virtual XKMSValidateResult * | createValidateResult (XKMSValidateRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <ValidateResult> message and surrounding document. | |
virtual XKMSCompoundResult * | createCompoundResult (XKMSCompoundRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <CompoundResult> message. | |
virtual XKMSCompoundResult * | createCompoundResult (XKMSCompoundRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <CompoundResult> message and surrounding document. | |
virtual XKMSResult * | createResult (XKMSRequestAbstractType *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <Result> message. | |
virtual XKMSResult * | createResult (XKMSRequestAbstractType *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <Result> message and surrounding document. | |
virtual XKMSStatusResult * | createStatusResult (XKMSStatusRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <StatusResult> message. | |
virtual XKMSStatusResult * | createStatusResult (XKMSStatusRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <StatusResult> message and surrounding document. | |
Methods for building new X-KRSS messages from scratch | |
virtual XKMSRegisterRequest * | createRegisterRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, const XMLCh *id=NULL)=0 |
Create a new <RegisterRequest> message. | |
virtual XKMSRegisterRequest * | createRegisterRequest (const XMLCh *service, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, const XMLCh *id=NULL)=0 |
Create a new <RegisterRequest> message and surrounding document. | |
virtual XKMSRegisterResult * | createRegisterResult (XKMSRegisterRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <RegisterResult> message. | |
virtual XKMSRegisterResult * | createRegisterResult (XKMSRegisterRequest *request, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument **doc, XKMSResultType::ResultMajor rmaj, XKMSResultType::ResultMinor rmin=XKMSResultType::NoneMinor, const XMLCh *id=NULL)=0 |
Create a new <RegisterResult> message and surrounding document. | |
Environment Manipulation Functions | |
virtual void | setDSIGNSPrefix (const XMLCh *prefix)=0 |
Set the prefix be used for the DSIG namespace. | |
virtual void | setECNSPrefix (const XMLCh *prefix)=0 |
Set the prefix be used for the Exclusive Canonicalisation namespace. | |
virtual void | setXPFNSPrefix (const XMLCh *prefix)=0 |
Set the prefix be used for the XPath-Filter2 namespace. | |
virtual void | setXENCNSPrefix (const XMLCh *prefix)=0 |
Set the prefix be used for the XML Encryption namespace. | |
virtual void | setXKMSNSPrefix (const XMLCh *prefix)=0 |
Set the prefix be used for the XKMS Namespace. | |
Message Conversions | |
virtual XKMSRequestAbstractType * | toRequestAbstractType (XKMSMessageAbstractType *msg)=0 |
Convert to a Request type. | |
virtual XKMSResultType * | toResultType (XKMSMessageAbstractType *msg)=0 |
Convert to a Result type. |
|
|
|
|
|
Create a new <CompoundRequest> message and surrounding document. Generates a new CompoundRequest message from scratch, building the DOM as it goes.
|
|
Create a new <CompoundRequest> message. Generates a new CompoundRequest message from scratch, building the DOM as it goes.
|
|
Create a new <CompoundResult> message and surrounding document. Generates a new CompoundResult message from scratch, building the DOM as it goes. The response will be based on a input ValidateRequest message which is used to provide Id etc.
|
|
Create a new <CompoundResult> message. Generates a new CompoundResult message from scratch, building the DOM as it goes. The response will be based on a input CompoundRequest message which is used to provide Id etc.
|
|
Create a new <LocateRequest> message and surrounding document. Generates a new LocateRequest message from scratch, building the DOM as it goes.
|
|
Create a new <LocateRequest> message. Generates a new LocateRequest message from scratch, building the DOM as it goes.
|
|
Create a new <LocateResult> message and surrounding document. Generates a new LocateResult message from scratch, building the DOM as it goes. The response will be based on a input LocateRequest message which is used to provide Id etc.
|
|
Create a new <LocateResult> message. Generates a new LocateResult message from scratch, building the DOM as it goes. The response will be based on a input LocateRequest message which is used to provide Id etc.
|
|
Create a new <PendingRequest> message and surrounding document. Generates a new PendingRequest message from scratch, building the DOM as it goes.
|
|
Create a new <PendingRequest> message. Generates a new PendingRequest message from scratch, building the DOM as it goes.
|
|
Create a new <RegisterRequest> message and surrounding document. Generates a new RegisterRequest message from scratch, building the DOM as it goes.
|
|
Create a new <RegisterRequest> message. Generates a new RegisterRequest message from scratch, building the DOM as it goes.
|
|
Create a new <RegisterResult> message and surrounding document. Generates a new RegisterResult message from scratch, building the DOM as it goes. The response will be based on a input ValidateRequest message which is used to provide Id etc.
|
|
Create a new <RegisterResult> message. Generates a new RegisterResult message from scratch, building the DOM as it goes. The response will be based on a input ValidateRequest message which is used to provide Id etc.
|
|
Create a new <Result> message and surrounding document. Generates a new Result message from scratch, building the DOM as it goes. The response will be based on a input Request message which is used to provide Id etc.
|
|
Create a new <Result> message. Generates a new Result message from scratch, building the DOM as it goes. The response will be based on an input Request message which is used to provide Id etc.
|
|
Create a new <StatusRequest> message and surrounding document. Generates a new StatusRequest message from scratch, building the DOM as it goes.
|
|
Create a new <StatusRequest> message. Generates a new StatusRequest message from scratch, building the DOM as it goes.
|
|
Create a new <StatusResult> message and surrounding document. Generates a new StatusResult message from scratch, building the DOM as it goes. The response will be based on a input StatusRequest message which is used to provide Id etc.
|
|
Create a new <StatusResult> message. Generates a new StatusResult message from scratch, building the DOM as it goes. The response will be based on a input StatusRequest message which is used to provide Id etc.
|
|
Create a new <ValidateRequest> message and surrounding document. Generates a new ValidateRequest message from scratch, building the DOM as it goes.
|
|
Create a new <ValidateRequest> message. Generates a new ValidateRequest message from scratch, building the DOM as it goes.
|
|
Create a new <ValidateResult> message and surrounding document. Generates a new ValidateResult message from scratch, building the DOM as it goes. The response will be based on a input ValidateRequest message which is used to provide Id etc.
|
|
Create a new <ValidateResult> message. Generates a new ValidateResult message from scratch, building the DOM as it goes. The response will be based on a input ValidateRequest message which is used to provide Id etc.
|
|
Load a message from an existing XML document. Reads in the XML document and produces the corresponding XKMS message object. Callers should make use of the ::getMessageType method to determine what type of message they are actually working with.
|
|
Set the prefix be used for the DSIG namespace.
|
|
Set the prefix be used for the Exclusive Canonicalisation namespace. The Exclusive Canonicalisation specification defines a new namespace for the InclusiveNamespaces node. This function can be used to set the prefix that the library will use when creating nodes within this namespace. xmlns:ds="http://www.w3.org/2001/10/xml-exc-c14n#" If no prefix is set, the default namespace will be used
|
|
Set the prefix be used for the XML Encryption namespace.
|
|
Set the prefix be used for the XKMS Namespace.
|
|
Set the prefix be used for the XPath-Filter2 namespace. The XPathFilter definition uses its own namespace. This method can be used to set the prefix that the library will use when creating elements in this namespace xmlns:ds="http://www.w3.org/2002/06/xmldsig-filter2" If no prefix is set, the default namespace will be used
|
|
Convert to a Request type. Used to convert a MessageAbstractType to a RequestAbstractType
|
|
Convert to a Result type. Used to convert a MessageAbstractType to a ResultType
|