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.String
DAEMON_EXAMPLE_FILE
static java.lang.String
DAEMON_FILE
static java.lang.String
DEFAULT_FOLDER
static java.lang.String
USER_ADMIN
static java.lang.String
USER_CLI
-
Constructor Summary
Constructors Constructor Description UserConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.net.ssl.SSLContext
createUserSSLContext()
static SaltedSecretKey
getConfigEncryptionKey()
static java.io.File
getUserConfigDir()
static java.io.File
getUserConfigFile()
static java.security.KeyStore
getUserKeyStore()
static java.io.File
getUserLogDir()
static java.io.File
getUserPluginLibDir()
static java.io.File
getUserPluginsUserdataDir(java.lang.String pluginId)
static java.security.KeyStore
getUserTrustStore()
static void
init()
static boolean
isPreventStandby()
static void
setPreventStandby(boolean newPreventStandby)
static void
storeTrustStore()
static void
storeUserKeyStore()
-
-
-
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
-
-