Package eu.europa.esig.dss.asic.cades
Class DefaultASiCWithCAdESFilenameFactory
java.lang.Object
eu.europa.esig.dss.asic.common.AbstractASiCFilenameFactory
eu.europa.esig.dss.asic.cades.DefaultASiCWithCAdESFilenameFactory
- All Implemented Interfaces:
ASiCWithCAdESFilenameFactory
,Serializable
- Direct Known Subclasses:
SimpleASiCWithCAdESFilenameFactory
public class DefaultASiCWithCAdESFilenameFactory
extends AbstractASiCFilenameFactory
implements ASiCWithCAdESFilenameFactory
This class provides a default implementation of
ASiCWithCAdESFilenameFactory
used within basic configuration of DSS for creation of filenames for new container entries.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArchiveManifestFilename
(ASiCContent asicContent) Returns a new filename of an archive manifest file to be moved.getDataPackageFilename
(ASiCContent asicContent) Returns a name of a ZIP archive containing signed documents in case of an ASiC-E signature, when applicablegetManifestFilename
(ASiCContent asicContent) Returns a filename of a manifest file to be createdgetSignatureFilename
(ASiCContent asicContent) Returns a filename for a signature file to be createdgetTimestampFilename
(ASiCContent asicContent) Returns a filename for a timestamp file to be createdMethods inherited from class eu.europa.esig.dss.asic.common.AbstractASiCFilenameFactory
assertASiCContentIsValid, assertFilenameValid, getNextAvailableDocumentName, getValidDataPackageFilename, getWithMetaInfFolder, isAvailableName
-
Constructor Details
-
DefaultASiCWithCAdESFilenameFactory
public DefaultASiCWithCAdESFilenameFactory()Default constructor
-
-
Method Details
-
getSignatureFilename
Description copied from interface:ASiCWithCAdESFilenameFactory
Returns a filename for a signature file to be created- Specified by:
getSignatureFilename
in interfaceASiCWithCAdESFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC container- Returns:
String
signature filename
-
getTimestampFilename
Description copied from interface:ASiCWithCAdESFilenameFactory
Returns a filename for a timestamp file to be created- Specified by:
getTimestampFilename
in interfaceASiCWithCAdESFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC container- Returns:
String
timestamp filename
-
getManifestFilename
Description copied from interface:ASiCWithCAdESFilenameFactory
Returns a filename of a manifest file to be created- Specified by:
getManifestFilename
in interfaceASiCWithCAdESFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC container- Returns:
String
manifest filename
-
getArchiveManifestFilename
Description copied from interface:ASiCWithCAdESFilenameFactory
Returns a new filename of an archive manifest file to be moved. NOTE: ASiC-E with CAdES shall always create a new archive manifest with the same name, while moving the last existing archive manifest.- Specified by:
getArchiveManifestFilename
in interfaceASiCWithCAdESFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC container- Returns:
String
manifest filename
-
getDataPackageFilename
Description copied from interface:ASiCWithCAdESFilenameFactory
Returns a name of a ZIP archive containing signed documents in case of an ASiC-E signature, when applicable- Specified by:
getDataPackageFilename
in interfaceASiCWithCAdESFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC container- Returns:
String
data package filename
-