Class OpenStegoConfig


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

      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • PASSWORD

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

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

        See Also:
        Constant Field Values
      • ENCRYPTION_ALGORITHM

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

        Algorithm to be used for encryption

        See Also:
        Constant Field Values
    • Constructor Detail

      • OpenStegoConfig

        public OpenStegoConfig()
    • Method Detail

      • initialize

        public final void initialize​(Map<String,​Object> propMap)
                              throws OpenStegoException
        Initialize the configuration with map 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 - Processing issues
      • processConfigItem

        protected void processConfigItem​(String key,
                                         Object value)
                                  throws OpenStegoException
        Processes a configuration item.
        Parameters:
        key - Configuration item key
        value - Configuration item value
        Throws:
        OpenStegoException - Processing issues
      • 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 - Value to be set
      • isUseEncryption

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

        public void setUseEncryption​(boolean useEncryption)
        Set Method for useEncryption
        Parameters:
        useEncryption - Value to be set
      • getPassword

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

        public void setPassword​(String password)
        Set Method for password
        Parameters:
        password - Value to be set
      • getEncryptionAlgorithm

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

        public void setEncryptionAlgorithm​(String encryptionAlgorithm)
        Set Method for encryptionAlgorithm
        Parameters:
        encryptionAlgorithm - Value to be set