Package net.sf.sevenzipjbinding
Interface IOutFeatureSetEncryptHeader
- All Known Subinterfaces:
IOutCreateArchive7z,IOutUpdateArchive7z
- All Known Implementing Classes:
OutArchive7zImpl
public interface IOutFeatureSetEncryptHeader
Feature interface for the setting 'encrypt header'. Use
SevenZip.openOutArchive(ArchiveFormat) or one of the
SevenZip.openOutArchiveXxx() methods to get implementation of this interface.- Since:
- 16.02-2.01
- Author:
- Boris Brodski
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetHeaderEncryption(boolean enabled) Enable/disable header encryption for password protected archives.
-
Method Details
-
setHeaderEncryption
Enable/disable header encryption for password protected archives. If enabled, the archive header containing file names and other metadata will be encrypted as well.
Note: ImplementICryptoGetTextPasswordin your callback class to turn on the encryption.- Parameters:
enabled-trueenable header encryption, otherwisefalse- Throws:
SevenZipException- in error case. If this method ends with an exception, the current operation will be reported to 7-Zip as failed. There is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such asIInArchive.extract()orSevenZip.openInArchive(). Up to four exceptions depending on the situation can be saved for further analysis. SeeSevenZipExceptionandSevenZipException.printStackTraceExtended()for details.
-