Class DataObjectFormatBuilder
java.lang.Object
eu.europa.esig.dss.xades.dataobject.DataObjectFormatBuilder
Builds
eu.europa.esig.dss.xades.dataobject.DSSDataObjectFormat objects.
The class handles the cases when a DataObjectFormat is not required to be created (e.g. in case of a counter-signature).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()This method builds a collectionDSSDataObjectFormats corresponding to the provided configuration.setReferences(Collection<DSSReference> references) Sets references to be used as a base for DataObjectFormat objects buildingprotected DSSDataObjectFormattoDataObjectFormat(DSSReference reference) This method creates aDSSDataObjectFormatbased on the givenDSSReferenceobject to be incorporated to the signature
-
Constructor Details
-
DataObjectFormatBuilder
public DataObjectFormatBuilder()Empty constructor
-
-
Method Details
-
setReferences
Sets references to be used as a base for DataObjectFormat objects building- Parameters:
references- a collection ofDSSReferences- Returns:
- this
DataObjectFormatBuilder
-
build
This method builds a collectionDSSDataObjectFormats corresponding to the provided configuration.- Returns:
- list of
DSSDataObjectFormats
-
toDataObjectFormat
This method creates aDSSDataObjectFormatbased on the givenDSSReferenceobject to be incorporated to the signature- Parameters:
reference-DSSReference- Returns:
DSSDataObjectFormat
-