Implementation of Australian E-health XML secured payload profiles.
Document ATS 5821-2010
To create a signedPayload just call the Create class method with a data object
and %SYS.X509Credentials object that contains the certificate and private key of the sender.
Additional signatures may be added using the AddSignature method.
To validate a signedPayload call the Validate method of the SignedPayloadType object.
Inherited description: NAMESPACE specifies the XML namespace to be used when projecting the
class to XML. If NAMESPACE = "", the default namespace is used for the XML schema
is used as the namespace for his class.
parameter XMLFORMAT = literal;
Inherited description: The XMLFORMAT parameter controls the generation of the XMLExport and XMLImport
methods for XML enabled classes to include code for only literal or only encoded format.
This allows the generated routines to be significantly smaller since usually
both formats are not needed.
If XMLFORMAT="Literal", then only support for literal format import and export is generated.
If XMLFORMAT="Encoded", then only support for SOAP encoded format import and export is generated.
The default is to generate support for both literal and encoded format.
parameter XMLNAME = signedPayload;
Inherited description: This parameter provides the default XMLNAME for the class. If it is
empty then the class name will be used to construct a default XML name.
The default XMLNAME is used as the top level tag
when exporting objects and the export context
did not provide an XML container name.
parameter XMLPREFIX = sp;
Inherited description: The XMLPREFIX parameter controls the prefix to be used for the XML namespace that
is given by the NAMESPACE parameter.
Create a SignedPayload and sign using a Signature.
- data is the subclass of HS.AU.SMD.BaseDataType that contains the payload.
- credentials contains the X.509 credentials used to sign the data.
- If error, error %Status is stored in status argument.
Validate the signatures in a signedPayload.
The document argument is the DOM for the document which contains the payload.
For SOAP messages, the document is in the ImportHandler property of the client or service.
Otherwise the payload may be exported and then the %XML.Reader OpenStream method will
convert the stream to a document in its Document property.