public class OpenStegoConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENCRYPTION_ALGORITHM
Key string for configuration item - encryptionAlgorithm
|
static java.lang.String |
PASSWORD
Key string for configuration item - password
|
static java.lang.String |
USE_COMPRESSION
Key string for configuration item - useCompression
|
static java.lang.String |
USE_ENCRYPTION
Key string for configuration item - useEncryption
|
Constructor and Description |
---|
OpenStegoConfig()
Default Constructor (with default values for configuration items)
|
OpenStegoConfig(CmdLineOptions options)
Constructor which reads configuration data from the command line options.
|
OpenStegoConfig(java.util.Map<java.lang.String,java.lang.String> propMap)
Constructor with map of configuration data.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addProperties(java.util.Map<java.lang.String,java.lang.String> propMap)
Method to add properties from the map to this configuration data
|
java.lang.String |
getEncryptionAlgorithm()
Get Method for encryptionAlgorithm
|
java.lang.String |
getPassword()
Get Method for password
|
boolean |
isUseCompression()
Get method for configuration item - useCompression
|
boolean |
isUseEncryption()
Get Method for useEncryption
|
void |
setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
Set Method for encryptionAlgorithm
|
void |
setPassword(java.lang.String password)
Set Method for password
|
void |
setUseCompression(boolean useCompression)
Set method for configuration item - useCompression
|
void |
setUseEncryption(boolean useEncryption)
Set Method for useEncryption
|
public static final java.lang.String USE_COMPRESSION
Flag to indicate whether compression should be used or not
public static final java.lang.String USE_ENCRYPTION
Flag to indicate whether encryption should be used or not
public static final java.lang.String PASSWORD
Password for encryption in case "useEncryption" is set to true
public static final java.lang.String ENCRYPTION_ALGORITHM
Algorithm to be used for encryption
public OpenStegoConfig()
public OpenStegoConfig(java.util.Map<java.lang.String,java.lang.String> propMap) throws OpenStegoException
propMap
- Map containing the configuration dataOpenStegoException
public OpenStegoConfig(CmdLineOptions options) throws OpenStegoException
options
- Command-line optionsOpenStegoException
protected void addProperties(java.util.Map<java.lang.String,java.lang.String> propMap) throws OpenStegoException
propMap
- Map containing the configuration dataOpenStegoException
public boolean isUseCompression()
public void setUseCompression(boolean useCompression)
useCompression
- public boolean isUseEncryption()
public void setUseEncryption(boolean useEncryption)
useEncryption
- public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- public java.lang.String getEncryptionAlgorithm()
public void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
encryptionAlgorithm
- Copyright © 2007-2021 Samir Vaidya. All Rights Reserved.