public class AsicWriterFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
AsicWriter |
newContainer(File file)
Creates a new AsicWriter, which will create an ASiC archive in the supplied file.
|
AsicWriter |
newContainer(File outputDir,
String filename)
Factory method creating a new AsicWriter, which will create an ASiC archive in the supplied directory with the supplied file name
|
AsicWriter |
newContainer(OutputStream outputStream)
Creates a new AsicWriter, which will write the container contents to the supplied output stream.
|
AsicWriter |
newContainer(Path path) |
static AsicWriterFactory |
newFactory()
Creates an AsicWriterFactory, which utilises the default signature method, which is currently CAdES.
|
static AsicWriterFactory |
newFactory(SignatureMethod signatureMethod)
Creates an AsicWriterFactory using the supplied signature method.
|
public static AsicWriterFactory newFactory()
public static AsicWriterFactory newFactory(SignatureMethod signatureMethod)
signatureMethod - the signature method to be used.SignatureMethodpublic AsicWriter newContainer(File outputDir, String filename) throws IOException
outputDir - the directory in which the archive will be created.filename - the name of the archive.IOExceptionpublic AsicWriter newContainer(File file) throws IOException
file - the file reference to the archive.IOExceptionpublic AsicWriter newContainer(Path path) throws IOException
IOExceptionnewContainer(File)public AsicWriter newContainer(OutputStream outputStream) throws IOException
outputStream - stream into which the archive will be written.IOExceptionCopyright © 2017 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.