| Package | Description |
|---|---|
| no.difi.asic | |
| no.difi.asic.extras |
| Modifier and Type | Method and Description |
|---|---|
AsicWriter |
AsicWriter.add(File file)
Adds another data object to the ASiC archive.
|
AsicWriter |
AsicWriter.add(File file,
String entryName)
Adds another data object to the ASiC container, using the supplied name as the zip entry name
|
AsicWriter |
AsicWriter.add(File file,
String entryName,
MimeType mimeType)
Adds the contents of a file into the ASiC archive using the supplied entry name and MIME type.
|
AsicWriter |
AsicWriter.add(InputStream inputStream,
String filename)
Adds the data provided by the stream into the ASiC archive, using the name of the supplied file as the
entry name.
|
AsicWriter |
AsicWriter.add(InputStream inputStream,
String filename,
MimeType mimeType)
Adds the contents of an input stream into the ASiC archive, under a given entry name and explicitly
identifying the MIME type.
|
AsicWriter |
AsicWriter.add(Path path)
Adds another data object to the ASiC archive
|
AsicWriter |
AsicWriter.add(Path path,
String entryName)
Adds another data object to the ASiC container under the entry name provided.
|
AsicWriter |
AsicWriter.add(Path path,
String entryName,
MimeType mimeType) |
AsicWriter |
AsicWriterFactory.newContainer(File file)
Creates a new AsicWriter, which will create an ASiC archive in the supplied file.
|
AsicWriter |
AsicWriterFactory.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 |
AsicWriterFactory.newContainer(OutputStream outputStream)
Creates a new AsicWriter, which will write the container contents to the supplied output stream.
|
AsicWriter |
AsicWriterFactory.newContainer(Path path) |
AsicWriter |
AsicWriter.setRootEntryName(String name)
Specifies which entry (file) represents the "root" document, i.e.
|
AsicWriter |
AsicWriter.sign(File keyStoreFile,
String keyStorePassword,
String keyPassword)
Signs and closes the ASiC archive.
|
AsicWriter |
AsicWriter.sign(File keyStoreFile,
String keyStorePassword,
String keyAlias,
String keyPassword)
Signs and closes the ASiC archive using the private and public key stored in the supplied key store under the supplied alias name.
|
AsicWriter |
AsicWriter.sign(SignatureHelper signatureHelper)
Allows re-use of the same SignatureHelper object when creating multiple ASiC archive and hence the need to create multiple signatures.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CmsEncryptedAsicWriter
Wrapper to seamlessly encode specific files.
|
| Modifier and Type | Method and Description |
|---|---|
AsicWriter |
CmsEncryptedAsicWriter.add(File file)
Adds another data object to the ASiC archive.
|
AsicWriter |
CmsEncryptedAsicWriter.add(File file,
String entryName)
Adds another data object to the ASiC container, using the supplied name as the zip entry name
|
AsicWriter |
CmsEncryptedAsicWriter.add(File file,
String entryName,
MimeType mimeType)
Adds the contents of a file into the ASiC archive using the supplied entry name and MIME type.
|
AsicWriter |
CmsEncryptedAsicWriter.add(InputStream inputStream,
String filename)
Adds the data provided by the stream into the ASiC archive, using the name of the supplied file as the
entry name.
|
AsicWriter |
CmsEncryptedAsicWriter.add(InputStream inputStream,
String filename,
MimeType mimeType)
Adds the contents of an input stream into the ASiC archive, under a given entry name and explicitly
identifying the MIME type.
|
AsicWriter |
CmsEncryptedAsicWriter.add(Path path)
Adds another data object to the ASiC archive
|
AsicWriter |
CmsEncryptedAsicWriter.add(Path path,
String entryName)
Adds another data object to the ASiC container under the entry name provided.
|
AsicWriter |
CmsEncryptedAsicWriter.add(Path path,
String entryName,
MimeType mimeType) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(File file) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(File file,
String entryName) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(File file,
String entryName,
MimeType mimeType) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(InputStream inputStream,
String filename) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(InputStream inputStream,
String filename,
MimeType mimeType) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(Path path) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(Path path,
String entryName) |
AsicWriter |
CmsEncryptedAsicWriter.addEncrypted(Path path,
String entryName,
MimeType mimeType) |
AsicWriter |
CmsEncryptedAsicWriter.setRootEntryName(String name) |
AsicWriter |
CmsEncryptedAsicWriter.sign(File keyStoreFile,
String keyStorePassword,
String keyPassword) |
AsicWriter |
CmsEncryptedAsicWriter.sign(File keyStoreFile,
String keyStorePassword,
String keyAlias,
String keyPassword) |
AsicWriter |
CmsEncryptedAsicWriter.sign(SignatureHelper signatureHelper) |
| Constructor and Description |
|---|
CmsEncryptedAsicWriter(AsicWriter asicWriter,
X509Certificate certificate) |
CmsEncryptedAsicWriter(AsicWriter asicWriter,
X509Certificate certificate,
org.bouncycastle.asn1.ASN1ObjectIdentifier cmsAlgorithm) |
Copyright © 2017 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.