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
,ASiCEvidenceRecordFilenameFactory
,ASiCFilenameFactory
,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 applicablegetEvidenceRecordFilename
(ASiCContent asicContent, EvidenceRecordTypeEnum evidenceRecordType) Returns a filename for an evidence record file to be createdgetEvidenceRecordManifestFilename
(ASiCContent asicContent) Returns a filename for an evidence record's ASIC manifest file to be createdgetManifestFilename
(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, getValidEvidenceRecordManifestFilename, getWithMetaInfFolder, isAvailableName
-
Constructor Details
-
DefaultASiCWithCAdESFilenameFactory
public DefaultASiCWithCAdESFilenameFactory()Default constructor
-
-
Method Details
-
getSignatureFilename
Description copied from interface:ASiCFilenameFactory
Returns a filename for a signature file to be created- Specified by:
getSignatureFilename
in interfaceASiCFilenameFactory
- 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:ASiCFilenameFactory
Returns a filename of a manifest file to be created- Specified by:
getManifestFilename
in interfaceASiCFilenameFactory
- 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:ASiCFilenameFactory
Returns a name of a ZIP archive containing signed documents in case of an ASiC-E signature, when applicable- Specified by:
getDataPackageFilename
in interfaceASiCFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC container- Returns:
String
data package filename
-
getEvidenceRecordFilename
public String getEvidenceRecordFilename(ASiCContent asicContent, EvidenceRecordTypeEnum evidenceRecordType) Description copied from interface:ASiCEvidenceRecordFilenameFactory
Returns a filename for an evidence record file to be created- Specified by:
getEvidenceRecordFilename
in interfaceASiCEvidenceRecordFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC containerevidenceRecordType
-EvidenceRecordTypeEnum
type of the evidence record to get a new filename for- Returns:
String
evidence record filename
-
getEvidenceRecordManifestFilename
Description copied from interface:ASiCEvidenceRecordFilenameFactory
Returns a filename for an evidence record's ASIC manifest file to be created- Specified by:
getEvidenceRecordManifestFilename
in interfaceASiCEvidenceRecordFilenameFactory
- Parameters:
asicContent
-ASiCContent
representing a content of an ASiC container- Returns:
String
evidence record's manifest filename
-