public class DecryptedEntryInputStream extends FilterInputStream implements AutoCloseable
EncryptedEntryOutputStream.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current entry in the underlying ZipOutputStream but DOES NOT close the stream.
|
static DecryptedEntryInputStream |
createEntryDecryptionInputStream(ZipInputStream zipInputStream,
ContentAlgorithmParam algorithmParam,
Key contentKey) |
static DecryptedEntryInputStream |
createEntryDecryptionInputStream(ZipInputStream zipInputStream,
ContentAlgorithmParam algorithmParam,
Key contentKey,
boolean closeUnderlying) |
static void |
ensureAuthenticated(InputStream zipInputStream,
ContentAlgorithmParam param,
Key contentKey) |
available, mark, markSupported, read, read, read, reset, skippublic static DecryptedEntryInputStream createEntryDecryptionInputStream(ZipInputStream zipInputStream, ContentAlgorithmParam algorithmParam, Key contentKey) throws InvalidAlgorithmParameterException, NoSuchPaddingException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, IOException
public static DecryptedEntryInputStream createEntryDecryptionInputStream(ZipInputStream zipInputStream, ContentAlgorithmParam algorithmParam, Key contentKey, boolean closeUnderlying) throws IOException, InvalidAlgorithmParameterException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException
public static void ensureAuthenticated(InputStream zipInputStream, ContentAlgorithmParam param, Key contentKey) throws AEADBadTagException
AEADBadTagExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionLicensed under the Apache License 2.0 - Copyright © {inceptionYear} – 2024 the original author or authors.