public class CommitmentTypeIndication extends XAdESBaseElement
If the indicated commitment type is explicit by means of a commitment type indication in the electronic signature, acceptance of a verified signature implies acceptance of the semantics of that commitment type. The semantics of explicit commitment types indications shall be specified either as part of the signature policy or MAY be registered for generic use across multiple policies.
If a signature includes a commitment type indication other than one of those recognized under the signature policy the signature shall be treated as invalid.
How commitment is indicated using the semantics of the data object being signed is outside the scope of the present document.
The commitment type MAY be:
The definition of a commitment type includes:
The qualifiers can provide more information about the commitment, it could provide, for example, information about the context be it contractual/legal/application specific.
If an electronic signature does not contain a recognized commitment type then the semantics of the electronic signature is dependent on the data object being signed and the context in which it is being used.
This is a signed property that qualifies signed data object(s). In consequence, an XML electronic signature aligned with the present document MAY contain more than one CommitmentTypeIndication elements.
Below follows the schema definition for this element.
<xsd:element name="CommitmentTypeIndication" type="CommitmentTypeIndicationType"/>
<xsd:complexType name="CommitmentTypeIndicationType">
<xsd:sequence>
<xsd:element name="CommitmentTypeId" type="ObjectIdentifierType"/>
<xsd:choice>
<xsd:element name="ObjectReference" type="xsd:anyURI" maxOccurs="unbounded"/>
<xsd:element name="AllSignedDataObjects"/>
</xsd:choice>
<xsd:element name="CommitmentTypeQualifiers" type="CommitmentTypeQualifiersListType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CommitmentTypeQualifiersListType">
<xsd:sequence>
<xsd:element name="CommitmentTypeQualifier" type="AnyType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
The CommitmentTypeId element univocally identifies the type of commitment made by the signer. A number of commitments have been already identified in TS 101 733 , namely:
One ObjectReference element refers to one
ds:Reference element of the ds:SignedInfo
corresponding with one data object qualified by this property. If some but
not all the signed data objects share the same commitment, one
ObjectReference element MUST appear for each one of them.
However, if all the signed data objects share the same commitment, the
AllSignedDataObjects empty element MUST be present.
The CommitmentTypeQualifiers element provides means to
include additional qualifying information on the commitment made by the
signer.
mContext, mElement, mId| Constructor and Description |
|---|
CommitmentTypeIndication(Context aBaglam,
CommitmentTypeId aCommitmentTypeId,
java.util.List<java.lang.String> aObjectReferences,
boolean aAllSignedDataObjects,
java.util.List<CommitmentTypeQualifier> aCommitmentTypeQualifiers) |
CommitmentTypeIndication(org.w3c.dom.Element aElement,
Context aContext)
Construct XADESBaseElement from existing
|
| Modifier and Type | Method and Description |
|---|---|
ObjectIdentifier |
getCommitmentTypeId() |
java.util.List<CommitmentTypeQualifier> |
getCommitmentTypeQualifiers() |
java.lang.String |
getLocalName() |
java.util.List<java.lang.String> |
getObjectReferences() |
boolean |
isAllSignedDataObjects() |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic CommitmentTypeIndication(Context aBaglam, CommitmentTypeId aCommitmentTypeId, java.util.List<java.lang.String> aObjectReferences, boolean aAllSignedDataObjects, java.util.List<CommitmentTypeQualifier> aCommitmentTypeQualifiers) throws XMLSignatureException
XMLSignatureExceptionpublic CommitmentTypeIndication(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 ObjectIdentifier getCommitmentTypeId()
public java.util.List<java.lang.String> getObjectReferences()
public boolean isAllSignedDataObjects()
public java.util.List<CommitmentTypeQualifier> getCommitmentTypeQualifiers()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.