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 StringGet path to config filestatic byte[]getData()get decrypted data in bytesGet history of commandsstatic voidSingleton instancestatic intGet last idstatic String[]Get last readstatic StringGet pass filestatic intGet secondsstatic voidsetArgon2dConfig(int[] argon2dConfig) Set argon2d configstatic voidsetConfigPath(String configPath) Set path to config filestatic voidsetData(byte[] data) Set decrypt data in bytesstatic voidsetHistory(String argument) Set history of commandsstatic voidsetLastId(int lastId) Set last idstatic voidsetLastRead(String[] lastRead) Set last readstatic voidsetPassFile(String passFile) Set pass filestatic voidsetSeconds(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 
 -