public class Config extends Object
| Constructor and Description |
|---|
Config() |
Config(String configFile,
Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrypt()
Decrypts all encrypted config value
|
String |
getAdminAuthenticationPassword() |
String |
getAdminAuthenticationUser() |
Map<String,String> |
getAllConfigurations() |
String |
getApplicationHost() |
String |
getApplicationLanguage() |
String |
getApplicationName() |
int |
getApplicationPort() |
String |
getApplicationSecret() |
String |
getAssetsPath() |
String |
getAuthCookieVersion() |
String |
getAuthenticationCookieName() |
long |
getAuthenticationExpires() |
long |
getAuthenticationRememberExpires() |
boolean |
getBoolean(Key key)
Retrieves a configuration value with the given key constant (e.g.
|
boolean |
getBoolean(Key key,
boolean defaultValue)
Retrieves a configuration value with the given key constant (e.g.
|
boolean |
getBoolean(String key)
Retrieves a configuration value with the given key
|
boolean |
getBoolean(String key,
boolean defaultValue)
Retrieves a configuration value with the given key
|
String |
getCacheAddresses() |
String |
getCacheClass() |
String |
getControllerPackage() |
String |
getCookieVersion() |
int |
getExecutionPool() |
String |
getFlashCookieName() |
String |
getI18nCookieName() |
int |
getInt(Key key)
Retrieves a configuration value with the given key constant (e.g.
|
int |
getInt(Key key,
int defaultValue)
Retrieves a configuration value with the given key constant (e.g.
|
int |
getInt(String key)
Retrieves a configuration value with the given key
|
int |
getInt(String key,
int defaultValue)
Retrieves a configuration value with the given key
|
String |
getJwtsEncryptionKey() |
String |
getJwtsSignKey() |
long |
getLong(Key key)
Retrieves a configuration value with the given key constant (e.g.
|
long |
getLong(Key key,
long defaultValue)
Retrieves a configuration value with the given key constant (e.g.
|
long |
getLong(String key)
Retrieves a configuration value with the given key
|
long |
getLong(String key,
long defaultValue)
Retrieves a configuration value with the given key
|
String |
getMasterKey() |
String |
getSchedulerPackage() |
String |
getSessionCookieName() |
long |
getSessionExpires() |
String |
getSmtpFrom() |
String |
getSmtpHost() |
String |
getSmtpPassword() |
int |
getSmtpPort() |
String |
getSmtpUsername() |
String |
getString(Key key)
Retrieves a configuration value with the given key constant (e.g.
|
String |
getString(Key key,
String defaultValue)
Retrieves a configuration value with the given key constant (e.g.
|
String |
getString(String key)
Retrieves a configuration value with the given key
|
String |
getString(String key,
String defaultValue)
Retrieves a configuration value with the given key
|
String |
getTemplateEngineClass() |
boolean |
hasValidSecret()
Checks if the application.conf stored in conf/application.conf contains an application
secret property (application.secret) that has at least 16 characters (128-Bit)
|
boolean |
isAdminEnabled() |
boolean |
isAuthenticationCookieEncrypt() |
boolean |
isAuthenticationCookieSecure() |
boolean |
isEncrypted(String value)
Checks if a value is encrypt by checking for the prefix crpytex
|
boolean |
isFlashCookieSecure() |
boolean |
isJwtsEncrypted() |
boolean |
isMinifyCSS() |
boolean |
isMinifyJS() |
boolean |
isPreprocessLess() |
boolean |
isPreprocessSass() |
boolean |
isSchedulerAutostart() |
boolean |
isSessionCookieEncrypt() |
boolean |
isSessionCookieSecure() |
boolean |
isSmtpSSL() |
boolean |
isTimerEnabled() |
public void decrypt()
public String getMasterKey()
public boolean isEncrypted(String value)
value - The value to checkpublic String getString(String key)
key - The key of the configuration value (e.g. application.name)public String getString(String key, String defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic int getInt(String key)
key - The key of the configuration value (e.g. application.name)public long getLong(String key)
key - The key of the configuration value (e.g. application.name)public long getLong(String key, long defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic int getInt(String key, int defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic boolean getBoolean(String key)
key - The key of the configuration value (e.g. application.name)public boolean getBoolean(String key, boolean defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic String getString(Key key)
key - The key of the configuration value (e.g. application.name)public String getString(Key key, String defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic long getLong(Key key)
key - The key of the configuration value (e.g. application.name)public long getLong(Key key, long defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic int getInt(Key key)
key - The key of the configuration value (e.g. application.name)public int getInt(Key key, int defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic boolean getBoolean(Key key)
key - The key of the configuration value (e.g. application.name)public boolean getBoolean(Key key, boolean defaultValue)
key - The key of the configuration value (e.g. application.name)defaultValue - The default value to return of no key is foundpublic Map<String,String> getAllConfigurations()
public boolean hasValidSecret()
public String getApplicationName()
public String getApplicationHost()
public int getApplicationPort()
public String getFlashCookieName()
public String getSessionCookieName()
public String getApplicationSecret()
public String getAuthenticationCookieName()
public long getAuthenticationExpires()
public long getSessionExpires()
public boolean isSessionCookieSecure()
public boolean isAuthenticationCookieSecure()
public String getI18nCookieName()
public boolean isFlashCookieSecure()
public String getApplicationLanguage()
public boolean isAuthenticationCookieEncrypt()
public String getAuthCookieVersion()
public String getCookieVersion()
public boolean isSchedulerAutostart()
public String getAdminAuthenticationUser()
public String getAdminAuthenticationPassword()
public String getSchedulerPackage()
public boolean isSessionCookieEncrypt()
public long getAuthenticationRememberExpires()
public int getExecutionPool()
public String getControllerPackage()
public boolean isTimerEnabled()
public String getCacheClass()
public String getCacheAddresses()
public String getTemplateEngineClass()
public boolean isMinifyJS()
public boolean isMinifyCSS()
public boolean isPreprocessSass()
public boolean isPreprocessLess()
public String getAssetsPath()
public boolean isAdminEnabled()
public String getSmtpHost()
public int getSmtpPort()
public boolean isSmtpSSL()
public String getSmtpUsername()
public String getSmtpPassword()
public String getSmtpFrom()
public String getJwtsSignKey()
public boolean isJwtsEncrypted()
public String getJwtsEncryptionKey()
Copyright © 2016. All rights reserved.