Package com.aspose.zip
Class SevenZipEncryptionSettings
- java.lang.Object
-
- com.aspose.zip.SevenZipEncryptionSettings
-
- Direct Known Subclasses:
SevenZipAESEncryptionSettings
public abstract class SevenZipEncryptionSettings extends Object
Base class for settings for several 7z encryption methods.
The AES-256 is the only possible encryption method for 7z archive. So the
SevenZipAESEncryptionSettingsis the only implementation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetEncryptHeader()Gets a value indicating header encryption.StringgetPassword()Gets password for encryption or decryption.voidsetEncryptHeader(boolean value)Sets a value indicating header encryption.voidsetPassword(String value)Sets password for encryption or decryption.
-
-
-
Method Detail
-
getPassword
public final String getPassword()
Gets password for encryption or decryption.
- Returns:
- password for encryption or decryption
-
setPassword
public final void setPassword(String value)
Sets password for encryption or decryption.
- Parameters:
value- password for encryption or decryption
-
getEncryptHeader
public final boolean getEncryptHeader()
Gets a value indicating header encryption.
This setting is equivalent
-mhe=onswitch of 7-Zip tool. Currently, it is incompatible with header compression.- Returns:
- a value indicating header encryption
-
setEncryptHeader
public final void setEncryptHeader(boolean value)
Sets a value indicating header encryption.
This setting is equivalent
-mhe=onswitch of 7-Zip tool. Currently, it is incompatible with header compression.- Parameters:
value- a value indicating header encryption
-
-