public class DataObjectFormat extends XAdESBaseElement
When presenting signed data to a human user it may be important that there is no ambiguity as to the presentation of the signed data object to the relying party. In order for the appropriate representation (text, sound or video) to be selected by the relying party a content hint MAY be indicated by the signer. If a relying party system does not use the format specified to present the data object to the relying party, the electronic signature may not be valid. Such behaviour may have been established by the signature policy, for instance.
The DataObjectFormat element provides information that
describes the format of the signed data object. This element SHOULD be
present when the signed data is to be presented to human users on
validation if the presentation format is not implicit within the data that
has been signed. This is a signed property that qualifies one specific
signed data object. In consequence, an XML electronic signature aligned with
the present document MAY contain more than one DataObjectFormat
elements, each one qualifying one signed data object.
Below follows the schema definition for this element.
<xsd:element name="DataObjectFormat" type="DataObjectFormatType"/>
<xsd:complexType name="DataObjectFormatType">
<xsd:sequence>
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
<xsd:element name="ObjectIdentifier" type="ObjectIdentifierType" minOccurs="0"/>
<xsd:element name="MimeType" type="xsd:string" minOccurs="0"/>
<xsd:element name="Encoding" type="xsd:anyURI" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="ObjectReference" type="xsd:anyURI" use="required"/>
</xsd:complexType>
The mandatory ObjectReference attribute MUST reference the
ds:Reference element of the ds:Signature
corresponding with the data object qualified by this property.
This element can convey:
Description;
ObjectIdentifier;
MimeType;
Encoding.
At least one element of Description,
ObjectIdentifier and MimeType MUST be present
within the property.
mContext, mElement, mId| Constructor and Description |
|---|
DataObjectFormat(Context aContext,
java.lang.String aObjectReference,
java.lang.String aDescription,
ObjectIdentifier aObjectIdentifier,
java.lang.String aMIMEType,
java.lang.String aEncoding) |
DataObjectFormat(org.w3c.dom.Element aElement,
Context aContext)
Construct XADESBaseElement from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription() |
java.lang.String |
getEncoding() |
java.lang.String |
getLocalName() |
java.lang.String |
getMIMEType() |
ObjectIdentifier |
getObjectIdentifier() |
java.lang.String |
getObjectReference() |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic DataObjectFormat(Context aContext, java.lang.String aObjectReference, java.lang.String aDescription, ObjectIdentifier aObjectIdentifier, java.lang.String aMIMEType, java.lang.String aEncoding) throws XMLSignatureException
XMLSignatureExceptionpublic DataObjectFormat(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic java.lang.String getObjectReference()
public java.lang.String getDescription()
public ObjectIdentifier getObjectIdentifier()
public java.lang.String getMIMEType()
public java.lang.String getEncoding()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.