public class CmsEncryptedAsicReader extends Object implements AsicReader
| Constructor and Description |
|---|
CmsEncryptedAsicReader(AsicReader asicReader,
PrivateKey privateKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
no.difi.commons.asic.jaxb.asic.AsicManifest |
getAsicManifest() |
String |
getNextFile()
Provides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.
|
InputStream |
inputStream()
Returns InputStream to read the content.
|
void |
writeFile(File file)
Writes the contents of the current entry into a file
|
void |
writeFile(OutputStream outputStream)
Writes contents of current archive entry to the supplied output stream.
|
void |
writeFile(Path path)
Writes contents of current archive entry into a file.
|
protected static final String BC
public CmsEncryptedAsicReader(AsicReader asicReader, PrivateKey privateKey)
public String getNextFile() throws IOException
AsicReadergetNextFile in interface AsicReaderIOExceptionpublic void writeFile(File file) throws IOException
AsicReaderwriteFile in interface AsicReaderfile - into which the contents should be written.IOExceptionpublic void writeFile(Path path) throws IOException
AsicReaderwriteFile in interface AsicReaderpath - into which the contents of current entry should be written.IOExceptionpublic void writeFile(OutputStream outputStream) throws IOException
AsicReaderwriteFile in interface AsicReaderoutputStream - into which data from current entry should be written.IOExceptionpublic InputStream inputStream() throws IOException
AsicReaderinputStream in interface AsicReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic no.difi.commons.asic.jaxb.asic.AsicManifest getAsicManifest()
getAsicManifest in interface AsicReaderCopyright © 2017 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.