Package eu.europa.esig.dss
Class FileNameBuilder
java.lang.Object
eu.europa.esig.dss.FileNameBuilder
This class is used to create a meaningful name for document depending
on its original name and the signing operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Generates and returns a final name for the document to createsetMimeType
(MimeType mimeType) Sets the document mimetypesetOriginalFilename
(String originalFilename) Sets the original filename of the documentsetSignatureLevel
(SignatureLevel signatureLevel) Sets the final signature levelsetSignaturePackaging
(SignaturePackaging signaturePackaging) Sets the signature packagingsetSigningOperation
(SigningOperation signingOperation) Sets the performed signing operation type
-
Constructor Details
-
FileNameBuilder
public FileNameBuilder()Default constructor to instantiate the builder
-
-
Method Details
-
setOriginalFilename
Sets the original filename of the document- Parameters:
originalFilename
-String
- Returns:
- this
FileNameBuilder
-
setSigningOperation
Sets the performed signing operation type- Parameters:
signingOperation
-SigningOperation
- Returns:
- this
FileNameBuilder
-
setSignatureLevel
Sets the final signature level- Parameters:
signatureLevel
-SignatureLevel
- Returns:
- this
FileNameBuilder
-
setSignaturePackaging
Sets the signature packaging- Parameters:
signaturePackaging
-SignaturePackaging
- Returns:
- this
FileNameBuilder
-
setMimeType
Sets the document mimetype- Parameters:
mimeType
-MimeType
- Returns:
- this
FileNameBuilder
-
build
Generates and returns a final name for the document to create- Returns:
String
the document filename
-