Class OpenStegoConfig

java.lang.Object
com.openstego.desktop.OpenStegoConfig

public class OpenStegoConfig extends Object
Class to store configuration data for OpenStego
  • Field Details

    • USE_COMPRESSION

      public static final String USE_COMPRESSION
      Key string for configuration item - useCompression

      Flag to indicate whether compression should be used or not

      See Also:
    • USE_ENCRYPTION

      public static final String USE_ENCRYPTION
      Key string for configuration item - useEncryption

      Flag to indicate whether encryption should be used or not

      See Also:
    • PASSWORD

      public static final String PASSWORD
      Key string for configuration item - password

      Password for encryption in case "useEncryption" is set to true

      See Also:
    • ENCRYPTION_ALGORITHM

      public static final String ENCRYPTION_ALGORITHM
      Key string for configuration item - encryptionAlgorithm

      Algorithm to be used for encryption

      See Also:
  • Constructor Details

    • OpenStegoConfig

      public OpenStegoConfig()
      Default Constructor (with default values for configuration items)
    • OpenStegoConfig

      public OpenStegoConfig(Map<String,String> propMap) throws OpenStegoException
      Constructor with map of configuration data. Please make sure that only valid keys for configuration items are provided, and the values for those items are also valid.
      Parameters:
      propMap - Map containing the configuration data
      Throws:
      OpenStegoException
    • OpenStegoConfig

      public OpenStegoConfig(CmdLineOptions options) throws OpenStegoException
      Constructor which reads configuration data from the command line options.
      Parameters:
      options - Command-line options
      Throws:
      OpenStegoException
  • Method Details

    • addProperties

      protected void addProperties(Map<String,String> propMap) throws OpenStegoException
      Method to add properties from the map to this configuration data
      Parameters:
      propMap - Map containing the configuration data
      Throws:
      OpenStegoException
    • isUseCompression

      public boolean isUseCompression()
      Get method for configuration item - useCompression
      Returns:
      useCompression
    • setUseCompression

      public void setUseCompression(boolean useCompression)
      Set method for configuration item - useCompression
      Parameters:
      useCompression -
    • isUseEncryption

      public boolean isUseEncryption()
      Get Method for useEncryption
      Returns:
      useEncryption
    • setUseEncryption

      public void setUseEncryption(boolean useEncryption)
      Set Method for useEncryption
      Parameters:
      useEncryption -
    • getPassword

      public String getPassword()
      Get Method for password
      Returns:
      password
    • setPassword

      public void setPassword(String password)
      Set Method for password
      Parameters:
      password -
    • getEncryptionAlgorithm

      public String getEncryptionAlgorithm()
      Get Method for encryptionAlgorithm
      Returns:
      encryptionAlgorithm
    • setEncryptionAlgorithm

      public void setEncryptionAlgorithm(String encryptionAlgorithm)
      Set Method for encryptionAlgorithm
      Parameters:
      encryptionAlgorithm -