Package org.syncany.config
Class UserConfig
- java.lang.Object
-
- org.syncany.config.UserConfig
-
public class UserConfig extends java.lang.Object
Represents the configuration parameters and application user directory of the currently logged in user, including system properties that will be set with every application start.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDAEMON_EXAMPLE_FILEstatic java.lang.StringDAEMON_FILEstatic java.lang.StringDEFAULT_FOLDERstatic java.lang.StringUSER_ADMINstatic java.lang.StringUSER_CLI
-
Constructor Summary
Constructors Constructor Description UserConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.net.ssl.SSLContextcreateUserSSLContext()static SaltedSecretKeygetConfigEncryptionKey()static java.io.FilegetUserConfigDir()static java.io.FilegetUserConfigFile()static java.security.KeyStoregetUserKeyStore()static java.io.FilegetUserLogDir()static java.io.FilegetUserPluginLibDir()static java.io.FilegetUserPluginsUserdataDir(java.lang.String pluginId)static java.security.KeyStoregetUserTrustStore()static voidinit()static booleanisPreventStandby()static voidsetPreventStandby(boolean newPreventStandby)static voidstoreTrustStore()static voidstoreUserKeyStore()
-
-
-
Field Detail
-
DAEMON_FILE
public static final java.lang.String DAEMON_FILE
- See Also:
- Constant Field Values
-
DAEMON_EXAMPLE_FILE
public static final java.lang.String DAEMON_EXAMPLE_FILE
- See Also:
- Constant Field Values
-
DEFAULT_FOLDER
public static final java.lang.String DEFAULT_FOLDER
- See Also:
- Constant Field Values
-
USER_ADMIN
public static final java.lang.String USER_ADMIN
- See Also:
- Constant Field Values
-
USER_CLI
public static final java.lang.String USER_CLI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserConfig
public UserConfig()
-
-
Method Detail
-
init
public static void init()
-
getUserConfigDir
public static java.io.File getUserConfigDir()
-
getUserLogDir
public static java.io.File getUserLogDir()
-
getUserPluginLibDir
public static java.io.File getUserPluginLibDir()
-
getUserPluginsUserdataDir
public static java.io.File getUserPluginsUserdataDir(java.lang.String pluginId)
-
getUserConfigFile
public static java.io.File getUserConfigFile()
-
isPreventStandby
public static boolean isPreventStandby()
-
setPreventStandby
public static void setPreventStandby(boolean newPreventStandby)
-
getConfigEncryptionKey
public static SaltedSecretKey getConfigEncryptionKey()
-
getUserTrustStore
public static java.security.KeyStore getUserTrustStore()
-
getUserKeyStore
public static java.security.KeyStore getUserKeyStore()
-
storeTrustStore
public static void storeTrustStore()
-
storeUserKeyStore
public static void storeUserKeyStore()
-
createUserSSLContext
public static javax.net.ssl.SSLContext createUserSSLContext() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-