Element InputDocuments Element InputDocuments The InputDocuments element is used to send documents to a DSS server, whether for signing or verifying. An input document can be any piece of data that can be used as input to a signature or timestamp calculation. An input document can even be a signature or timestamp (for example, a pre-existing signature can be counter-signed or timestamped). InputDocuments element MUST contain zero or more of the following elements respectively: Document, TransformedData, and DocumentHash in any ∆ [DSS-3.5-1] Element Document The Document element with cardinality [0, ∞] contains documents respectively and as specified in section 3.5.4 . Element TransformedData The TransformedData element with cardinality [0, ∞] contains the binary output of a chain of transforms applied by a client as specified in section 3.5.5 . Element DocumentHash The DocumentHash element with cardinality [0, ∞] contains the hash values as specified in section 3.5.6 . Format specific implementations including mappings to the generic terms are defined in 9.5 and 10.5 respectively.
XML Syntax XML schema snippet defining TransformedDataType: <xs:complexType name="TransformedDataType"> <xs:complexContent> <xs:extension base="dss:DocumentBaseType"> <xs:sequence> <xs:element ref="ds:Transforms" minOccurs="0"/> <xs:element ref="dss:Base64Data"/> </xs:sequence> <xs:attribute name="WhichReference" type="xs:integer" use="optional"/> </xs:extension> </xs:complexContent> </xs:complexType> JSON Syntax Element name mapping table: Element JSON Member Name ConceptName A_SIMILAR_THING Element JSON member name ds:Transforms transforms Base64Data b64Data WhichReference whichRef Type DocumentHashType The DocumentHashType contains the following elements (in addition to the common ones listed in section 2.1.1): ds:Transforms [Required on a SignRequest] [Optional on VerifyRequest] This specifies the for a ds:Reference element’s ds:Transforms child element when referring to this document hash. In other words, this specifies transforms that the client has already applied to the input document before hashing it. DigestInfos [Required] This element contains a set of one or more hash values for different hash algorithms calculated on the same document. So, different hash values represent the same document. If a request supplies more than one document represented as ‘hash only’ each of these instances is represented by an element of DocumentHashType . This specifies the for a ds:Reference element’s ds:DigestMethod child element when referring to this input document. WhichReference [Ignored on a SignRequest] [Optional on a VerifyRequest]
Table of Types, Elements and Attributes Type Base64DataType 15 Element AttRefUri 15 Element Id 15 Element 15 Element MimeType 15 Type AnyType 16 Element Base64Content 16 Attribute MimeType 16 Type InternationalStringType 16 Attribute lang 16 Type KeyInfoType 17 Element X509Digest 17 Element Algorithm 17 Element X509SubjectName 17 Element X509SKI 17 Element X509Certificate 17 Element KeyName 17 Element InputDocuments 18 Element Document 18 Element TransformedData 18 Element DocumentHash 18 Type DocumentBaseType 19 Attribute Id 19 Attribute RefUri 19 Attribute RefType 19 Attribute SchemaRefs 19 Element SignatureObject 22 Element dss:AnElement 93