public class CipherUtils extends Object
| Constructor and Description |
|---|
CipherUtils(Path zipPath) |
CipherUtils(Path zipPath,
Path keyPath,
Path checksumPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
createZipChecksumFile()
Creates a file containing the checksum for the zip file
|
Path |
getChecksumPath() |
CipherOutputStream |
getCipherOutputStream(OutputStream outputStream)
Wraps a given
OutputStream in a CipherOutputStream |
Path |
getKeyPath() |
Path |
getZipPath() |
public CipherUtils(Path zipPath)
public CipherOutputStream getCipherOutputStream(OutputStream outputStream)
OutputStream in a CipherOutputStreamoutputStream - CipherOutputStream for writing encrypted ZipEntry
contentspublic void createZipChecksumFile()
throws IOException,
NoSuchAlgorithmException
IOExceptionNoSuchAlgorithmExceptionpublic Path getZipPath()
public Path getKeyPath()
public Path getChecksumPath()
This work is licensed under a Creative Commons Attribution 4.0 International License.