|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.poifs.crypt.temp.AesZipFileZipEntrySource
@Beta public class AesZipFileZipEntrySource
An example ZipEntrySource that has encrypted temp files to ensure that
sensitive data is not stored in raw format on disk.
| Constructor Summary | |
|---|---|
AesZipFileZipEntrySource(java.io.File tmpFile,
javax.crypto.Cipher ci)
|
|
| Method Summary | |
|---|---|
void |
close()
Indicates we are done with reading, and resources may be freed |
static AesZipFileZipEntrySource |
createZipEntrySource(java.io.InputStream is)
|
java.util.Enumeration<? extends java.util.zip.ZipEntry> |
getEntries()
Note: the file sizes are rounded up to the next cipher block size, so don't rely on file sizes of these custom encrypted zip file entries! |
java.io.InputStream |
getInputStream(java.util.zip.ZipEntry entry)
Returns an InputStream of the decompressed data that makes up the entry |
boolean |
isClosed()
Has close been called already? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AesZipFileZipEntrySource(java.io.File tmpFile,
javax.crypto.Cipher ci)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.util.Enumeration<? extends java.util.zip.ZipEntry> getEntries()
getEntries in interface ZipEntrySource
public java.io.InputStream getInputStream(java.util.zip.ZipEntry entry)
throws java.io.IOException
ZipEntrySource
getInputStream in interface ZipEntrySourcejava.io.IOException
public void close()
throws java.io.IOException
ZipEntrySource
close in interface java.io.Closeableclose in interface ZipEntrySourcejava.io.IOExceptionpublic boolean isClosed()
ZipEntrySource
isClosed in interface ZipEntrySource
public static AesZipFileZipEntrySource createZipEntrySource(java.io.InputStream is)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||