public class EncryptedZipSupplier extends Object implements AutoCloseable
| Constructor and Description |
|---|
EncryptedZipSupplier(SupplierParameters param)
Creates a new object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
EncryptedEntryOutputStream |
getEncryptedEntryStream(String entryName)
Creates a new archive entry with given name and returns a stream to said entry.
|
public EncryptedZipSupplier(SupplierParameters param) throws IOException
param - the parameters used in encryption.IOException - if the output file cannot be written to.public EncryptedEntryOutputStream getEncryptedEntryStream(String entryName) throws IOException, InvalidAlgorithmParameterException, NoSuchPaddingException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
entryName - the name of the entry to be decryptIOException - throws if there was an issue writing (to) the entry.InvalidAlgorithmParameterException - throws if there was an issue writing (to) the entry.NoSuchPaddingException - throws if there was an issue writing (to) the entry.NoSuchAlgorithmException - throws if there was an issue writing (to) the entry.NoSuchProviderException - throws if there was an issue writing (to) the entry.InvalidKeyException - throws if there was an issue writing (to) the entry.public void close()
throws IOException
close in interface AutoCloseableIOExceptionLicensed under the Apache License 2.0 - Copyright © {inceptionYear} – 2024 the original author or authors.