public class EncryptedZipProvider extends Object
| Constructor and Description |
|---|
EncryptedZipProvider(ProviderParameters param) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getEntryStream(String entryName) |
byte[] |
readEntryCompletely(String entryName)
Tries to find and read a zip entry and decrypt it.
|
public EncryptedZipProvider(ProviderParameters param)
public InputStream getEntryStream(String entryName) throws IOException, InvalidAlgorithmParameterException, NoSuchPaddingException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, org.bouncycastle.crypto.InvalidCipherTextException
IOExceptionInvalidAlgorithmParameterExceptionNoSuchPaddingExceptionNoSuchAlgorithmExceptionNoSuchProviderExceptionInvalidKeyExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionpublic byte[] readEntryCompletely(String entryName) throws IOException, org.bouncycastle.crypto.InvalidCipherTextException, InvalidAlgorithmParameterException, NoSuchPaddingException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
entryName - the name of the entry to read. Usually in
EncryptedArchiveConstants.IOException - throws on errororg.bouncycastle.crypto.InvalidCipherTextException - throws on errorInvalidAlgorithmParameterException - throws on errorNoSuchPaddingException - throws on errorNoSuchAlgorithmException - throws on errorNoSuchProviderException - throws on errorInvalidKeyException - throws on errorLicensed under the Apache License 2.0 - Copyright © {inceptionYear} – 2024 the original author or authors.