public class AsicSCompositeContainer extends AsicSContainer implements CompositeContainer
Container.DocumentType
Constructor and Description |
---|
AsicSCompositeContainer(AsicParseResult containerParseResult,
Container nestedContainer,
Configuration configuration) |
AsicSCompositeContainer(DataFile serializedNestedContainer,
Container nestedContainer) |
AsicSCompositeContainer(DataFile serializedNestedContainer,
Container nestedContainer,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
addDataFile(DataFile dataFile)
Adds the specified data file to the container.
|
DataFile |
addDataFile(File file,
String mimeType)
Adds a data file from the file system to the container.
|
DataFile |
addDataFile(InputStream inputStream,
String fileName,
String mimeType)
Adds a data file from the input stream (i.e. the date file content can be read from the internal memory buffer).
|
DataFile |
addDataFile(String path,
String mimeType)
Adds a data file from the file system to the container.
|
List<DataFile> |
getNestedContainerDataFiles()
Returns the list of data files in the nested inner container.
|
List<Signature> |
getNestedContainerSignatures()
Returns the list of signatures in the nested inner container.
|
List<Timestamp> |
getNestedContainerTimestamps()
Returns the list of timestamp tokens that cover the contents of the nested inner container.
|
String |
getNestedContainerType()
Returns the type of the nested container.
|
List<DataFile> |
getNestingContainerDataFiles()
Returns the list of data files in the nesting outer container.
|
List<Signature> |
getNestingContainerSignatures()
Returns the list of signatures in the nesting outer container.
|
List<Timestamp> |
getNestingContainerTimestamps()
Returns the list of timestamp tokens that cover the contents of the nesting outer container.
|
void |
removeDataFile(DataFile file)
Removes the data file from the container.
|
ContainerValidationResult |
validate()
Validate container
|
ContainerValidationResult |
validateAt(Date validationTime)
Validate container against the specified validation time.
|
addSignature, addTimestamp, getTimestamps, getTimeStampToken, removeTimestamp, replaceDataFile, save, setTimeStampToken
extendSignatureProfile, extendSignatureProfile, getConfiguration, getContainerParseResult, getDataFiles, getSignatures, getType, isTimestampTokenDefined, removeSignature, saveAsFile, saveAsStream, setType
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSignature, addTimestamp, extendSignatureProfile, extendSignatureProfile, getConfiguration, getDataFiles, getSignatures, getTimestamps, getTimeStampToken, getType, removeSignature, removeTimestamp, save, saveAsFile, saveAsStream, setTimeStampToken
public AsicSCompositeContainer(DataFile serializedNestedContainer, Container nestedContainer)
public AsicSCompositeContainer(DataFile serializedNestedContainer, Container nestedContainer, Configuration configuration)
public AsicSCompositeContainer(AsicParseResult containerParseResult, Container nestedContainer, Configuration configuration)
public DataFile addDataFile(String path, String mimeType)
Container
Note: Data files can be added to a container only after all signatures have been removed.
addDataFile
in interface Container
addDataFile
in class AsicContainer
path
- data file to be added to the containermimeType
- MIME type of the data file, for example 'text/plain' or 'application/msword'public DataFile addDataFile(InputStream inputStream, String fileName, String mimeType)
Container
Note: Data files can be added to a container only after all signatures have been removed.
addDataFile
in interface Container
addDataFile
in class AsicContainer
inputStream
- input stream from where data is readfileName
- data file name in the containermimeType
- MIME type of the data file, for example 'text/plain' or 'application/msword'public DataFile addDataFile(File file, String mimeType)
Container
Note: Data files can be added to a container only after all signatures have been removed.
addDataFile
in interface Container
addDataFile
in class AsicContainer
file
- data file to be added to the containermimeType
- MIME type of the data file, for example 'text/plain' or 'application/msword'public void addDataFile(DataFile dataFile)
Container
Note: Data files can be added to a container only after all signatures have been removed.
addDataFile
in interface Container
addDataFile
in class AsicContainer
dataFile
- data file to be added to the containerpublic void removeDataFile(DataFile file)
Container
Note: Data files can be removed from a container only after all signatures have been removed.
removeDataFile
in interface Container
removeDataFile
in class AsicContainer
file
- data file to be removed from the container.public List<DataFile> getNestingContainerDataFiles()
CompositeContainer
getNestingContainerDataFiles
in interface CompositeContainer
public List<DataFile> getNestedContainerDataFiles()
CompositeContainer
getNestedContainerDataFiles
in interface CompositeContainer
public List<Signature> getNestingContainerSignatures()
CompositeContainer
getNestingContainerSignatures
in interface CompositeContainer
public List<Signature> getNestedContainerSignatures()
CompositeContainer
getNestedContainerSignatures
in interface CompositeContainer
public List<Timestamp> getNestingContainerTimestamps()
CompositeContainer
getNestingContainerTimestamps
in interface CompositeContainer
public List<Timestamp> getNestedContainerTimestamps()
CompositeContainer
getNestedContainerTimestamps
in interface CompositeContainer
public String getNestedContainerType()
CompositeContainer
getNestedContainerType
in interface CompositeContainer
Container.getType()
public ContainerValidationResult validate()
Container
validate
in interface Container
validate
in class AsicContainer
public ContainerValidationResult validateAt(Date validationTime)
org.digidoc4j.impl.ValidatableContainer
validateAt
in interface org.digidoc4j.impl.ValidatableContainer
validateAt
in class AsicContainer
validationTime
- validation timeCopyright © 2024. All rights reserved.