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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
This method builds a collectionDSSDataObjectFormat
s corresponding to the provided configuration.setReferences
(Collection<DSSReference> references) Sets references to be used as a base for DataObjectFormat objects buildingprotected DSSDataObjectFormat
toDataObjectFormat
(DSSReference reference) This method creates aDSSDataObjectFormat
based on the givenDSSReference
object 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 ofDSSReference
s- Returns:
- this
DataObjectFormatBuilder
-
build
This method builds a collectionDSSDataObjectFormat
s corresponding to the provided configuration.- Returns:
- list of
DSSDataObjectFormat
s
-
toDataObjectFormat
This method creates aDSSDataObjectFormat
based on the givenDSSReference
object to be incorporated to the signature- Parameters:
reference
-DSSReference
- Returns:
DSSDataObjectFormat
-