@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) final class WinZipAesEntryReadOnlyFile extends CipherReadOnlyFile
RawZipOutputStream.WinZipAesOutputMethod| Modifier and Type | Field and Description |
|---|---|
private byte[] |
authenticationCode |
private ZipEntry |
entry |
private KeyParameter |
sha1MacParam
The key parameter required to init the SHA-1 Message Authentication
Code (HMAC).
|
delegate| Constructor and Description |
|---|
WinZipAesEntryReadOnlyFile(ReadOnlyFile rof,
WinZipAesEntryParameters param) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
authenticate()
Authenticates all encrypted data in this read only file.
|
private void |
paranoidWipe(byte[] pwd)
Wipe the given array.
|
close, computeMac, getFilePointer, init, length, read, read, seektoStringread, readFully, readFullyprivate final byte[] authenticationCode
private final ZipEntry entry
private final KeyParameter sha1MacParam
WinZipAesEntryReadOnlyFile(ReadOnlyFile rof, WinZipAesEntryParameters param) throws IOException
IOExceptionvoid authenticate()
throws IOException
ZipAuthenticationException - If the computed MAC does not match
the MAC declared in the WinZip AES entry.IOException - On any I/O related issue.private void paranoidWipe(byte[] pwd)
Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.