Class ConfigGetter

java.lang.Object
org.jpass.utils.ConfigGetter

public class ConfigGetter extends Object
Singleton class to get and set configuration settings
  • Constructor Details

    • ConfigGetter

      public ConfigGetter()
  • Method Details

    • setPassFile

      public static void setPassFile(String passFile)
      Set pass file
      Parameters:
      passFile - pass file
    • setSeconds

      public static void setSeconds(int seconds)
      Set seconds
      Parameters:
      seconds - seconds
    • setData

      public static void setData(byte[] data)
      Set decrypt data in bytes
      Parameters:
      data - decrypted data
    • setArgon2dConfig

      public static void setArgon2dConfig(int[] argon2dConfig)
      Set argon2d config
      Parameters:
      argon2dConfig - argon2d config
    • setLastRead

      public static void setLastRead(String[] lastRead)
      Set last read
      Parameters:
      lastRead - last read
    • setLastId

      public static void setLastId(int lastId)
      Set last id
      Parameters:
      lastId - last id
    • setHistory

      public static void setHistory(String argument)
      Set history of commands
      Parameters:
      argument - command
    • setConfigPath

      public static void setConfigPath(String configPath)
      Set path to config file
      Parameters:
      configPath - path to config file
    • getPassFile

      public static String getPassFile()
      Get pass file
      Returns:
      pass file
    • getSeconds

      public static int getSeconds()
      Get seconds
      Returns:
      seconds
    • getData

      public static byte[] getData()
      get decrypted data in bytes
      Returns:
      data
    • getArgon2dConfig

      public static int[] getArgon2dConfig()
      Get argon2d config
      Returns:
      argon2d config
    • getLastRead

      public static String[] getLastRead()
      Get last read
      Returns:
      last read
    • getLastId

      public static int getLastId()
      Get last id
      Returns:
      last id
    • getHistory

      public static ArrayList<String> getHistory()
      Get history of commands
      Returns:
      history of commands
    • getConfigPath

      public static String getConfigPath()
      Get path to config file
      Returns:
      path to config file
    • getInstance

      public static void getInstance()
      Singleton instance