Package org.jpass.utils
Class ConfigGetter
java.lang.Object
org.jpass.utils.ConfigGetter
Singleton class to get and set configuration settings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
Get argon2d configstatic String
Get path to config filestatic byte[]
getData()
get decrypted data in bytesGet history of commandsstatic void
Singleton instancestatic int
Get last idstatic String[]
Get last readstatic String
Get pass filestatic int
Get secondsstatic void
setArgon2dConfig
(int[] argon2dConfig) Set argon2d configstatic void
setConfigPath
(String configPath) Set path to config filestatic void
setData
(byte[] data) Set decrypt data in bytesstatic void
setHistory
(String argument) Set history of commandsstatic void
setLastId
(int lastId) Set last idstatic void
setLastRead
(String[] lastRead) Set last readstatic void
setPassFile
(String passFile) Set pass filestatic void
setSeconds
(int seconds) Set seconds
-
Constructor Details
-
ConfigGetter
public ConfigGetter()
-
-
Method Details
-
setPassFile
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
Set last read- Parameters:
lastRead
- last read
-
setLastId
public static void setLastId(int lastId) Set last id- Parameters:
lastId
- last id
-
setHistory
Set history of commands- Parameters:
argument
- command
-
setConfigPath
Set path to config file- Parameters:
configPath
- path to config file
-
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
Get last read- Returns:
- last read
-
getLastId
public static int getLastId()Get last id- Returns:
- last id
-
getHistory
Get history of commands- Returns:
- history of commands
-
getConfigPath
Get path to config file- Returns:
- path to config file
-
getInstance
public static void getInstance()Singleton instance
-