Package eu.europa.esig.dss.model
Class CommonCommitmentType
java.lang.Object
eu.europa.esig.dss.model.CommonCommitmentType
- All Implemented Interfaces:
CommitmentType,ObjectIdentifier,OidAndUriBasedEnum,OidBasedEnum,OidDescription,UriBasedEnum,Serializable
This class provides a basic implementation of
CommitmentType providing a possibility
to create a customized CommitmentType signed property.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionGets custom CommitmentTypeQualifiers ListString[]getOid()String[]Gets references to signed data objects for the current CommitmentTypegetUri()voidsetCommitmentTypeQualifiers(CommitmentQualifier... commitmentTypeQualifiers) Sets custom CommitmentTypeQualifiers List.voidsetDescription(String description) Sets text describing the CommitmentType object.voidsetDocumentationReferences(String... documentationReferences) Sets references pointing to a documentation describing the CommitmentType Use : OPTIONALvoidSets OID identifying the CommitmentType Use : CONDITIONAL (shall be present in CAdES, PAdES.voidsetQualifier(ObjectIdentifierQualifier qualifier) Sets Qualifier defining the type of OID identifier used for CommitmentType.voidsetSignedDataObjects(String... signedDataObjects) Sets signed data objects referenced by the current CommitmentType.voidSets URI identifying the CommitmentType Use : CONDITIONAL (should be present in XAdES, JAdES)
-
Constructor Details
-
CommonCommitmentType
public CommonCommitmentType()Default constructor instantiating object with null values
-
-
Method Details
-
getUri
- Specified by:
getUriin interfaceUriBasedEnum
-
setUri
Sets URI identifying the CommitmentType Use : CONDITIONAL (should be present in XAdES, JAdES)- Parameters:
uri-String
-
getOid
- Specified by:
getOidin interfaceOidBasedEnum
-
setOid
Sets OID identifying the CommitmentType Use : CONDITIONAL (shall be present in CAdES, PAdES. May be present in XAdES, JAdES). Note : when using OID in XAdES, a Qualifier shall be defined within the methodsetQualifier(qualifier). See EN 319 132-1 "5.1.2 The ObjectIdentifierType data type" for more information.- Parameters:
oid-String
-
getQualifier
- Specified by:
getQualifierin interfaceObjectIdentifier
-
setQualifier
Sets Qualifier defining the type of OID identifier used for CommitmentType. See EN 319 132-1 "5.1.2 The ObjectIdentifierType data type" for more information. Use : CONDITIONAL (shall be present XAdES when using OID identifier, but not URI) Note : used only in XAdES- Parameters:
qualifier-ObjectIdentifierQualifier
-
getDescription
- Specified by:
getDescriptionin interfaceOidDescription
-
setDescription
Sets text describing the CommitmentType object. Use : OPTIONAL- Parameters:
description-String
-
getDocumentationReferences
- Specified by:
getDocumentationReferencesin interfaceObjectIdentifier
-
setDocumentationReferences
Sets references pointing to a documentation describing the CommitmentType Use : OPTIONAL- Parameters:
documentationReferences- array ofStrings
-
getSignedDataObjects
Gets references to signed data objects for the current CommitmentType- Returns:
- array of
Strings
-
setSignedDataObjects
Sets signed data objects referenced by the current CommitmentType. When CommitmentType is made for a subset of signed data objects, each element of the array shall refer one ds:Reference element within the ds:SignedInfo element or within a signed ds:Manifest element. When CommitmentType is made for all signed data objects, the array shall be: - empty (default), then AllSignedDataObjects element will be created; or - contain references to all signed data objects (one ObjectReference will be created for each). Use : OPTIONAL (XAdES only)- Parameters:
signedDataObjects- array ofStrings
-
getCommitmentTypeQualifiers
Gets custom CommitmentTypeQualifiers List- Returns:
- array of
DSSDocuments
-
setCommitmentTypeQualifiers
Sets custom CommitmentTypeQualifiers List. Use : OPTIONAL- Parameters:
commitmentTypeQualifiers- array ofCommitmentQualifiers representing content of the CommitmentTypeQualifier element
-