Class ConfigurationOverlayProvider
- java.lang.Object
-
- org.owasp.csrfguard.config.overlay.ConfigPropertiesCascadeBase
-
- org.owasp.csrfguard.config.overlay.ConfigurationOverlayProvider
-
public class ConfigurationOverlayProvider extends ConfigPropertiesCascadeBase
Use configuration overlays that use the base properties as a default, and then decorate with an overlay file
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.owasp.csrfguard.config.overlay.ConfigPropertiesCascadeBase
ConfigPropertiesCascadeBase.ConfigFile, ConfigPropertiesCascadeBase.ConfigFileType
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETA_INF_CSRFGUARD_PROPERTIESstatic StringOWASP_CSRF_GUARD_OVERLAY_PROPERTIESovrlay properties filestatic StringOWASP_CSRF_GUARD_PROPERTIESbase properties file
-
Constructor Summary
Constructors Constructor Description ConfigurationOverlayProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetHierarchyConfigKey()config key of the hierarchy valueprotected StringgetMainConfigClasspath()get the main config classpath, e.g.protected StringgetMainExampleConfigClasspath()get the example config classpath, e.g.protected StringgetSecondsToCheckConfigKey()config key of the time in seconds to check config.static ConfigurationOverlayProviderretrieveConfig()retrieve a config from the config file or from cache-
Methods inherited from class org.owasp.csrfguard.config.overlay.ConfigPropertiesCascadeBase
filesNeedReloadingBasedOnContents, getClassInSiblingJar, getTimeToCheckConfigSeconds, needToCheckIfFilesNeedReloading, properties, propertiesFromResourceName, propertiesHelper, propertiesOverrideMap, propertiesThreadLocalOverrideMap, retrieveConfig, retrieveFromConfigFileOrCache, retrieveFromConfigFiles
-
-
-
-
Field Detail
-
META_INF_CSRFGUARD_PROPERTIES
public static final String META_INF_CSRFGUARD_PROPERTIES
- See Also:
- Constant Field Values
-
OWASP_CSRF_GUARD_PROPERTIES
public static final String OWASP_CSRF_GUARD_PROPERTIES
base properties file- See Also:
- Constant Field Values
-
OWASP_CSRF_GUARD_OVERLAY_PROPERTIES
public static final String OWASP_CSRF_GUARD_OVERLAY_PROPERTIES
ovrlay properties file- See Also:
- Constant Field Values
-
-
Method Detail
-
retrieveConfig
public static ConfigurationOverlayProvider retrieveConfig()
retrieve a config from the config file or from cache- Returns:
- the config object
-
getSecondsToCheckConfigKey
protected String getSecondsToCheckConfigKey()
Description copied from class:ConfigPropertiesCascadeBaseconfig key of the time in seconds to check config. -1 means dont check again- Specified by:
getSecondsToCheckConfigKeyin classConfigPropertiesCascadeBase- Returns:
- config key
-
getMainConfigClasspath
protected String getMainConfigClasspath()
Description copied from class:ConfigPropertiesCascadeBaseget the main config classpath, e.g. csrf guard properties- Specified by:
getMainConfigClasspathin classConfigPropertiesCascadeBase- Returns:
- the classpath of the main config file
-
getHierarchyConfigKey
protected String getHierarchyConfigKey()
Description copied from class:ConfigPropertiesCascadeBaseconfig key of the hierarchy value- Specified by:
getHierarchyConfigKeyin classConfigPropertiesCascadeBase- Returns:
- the classpath of the main config file
-
getMainExampleConfigClasspath
protected String getMainExampleConfigClasspath()
Description copied from class:ConfigPropertiesCascadeBaseget the example config classpath, e.g. csrf guard base properties- Specified by:
getMainExampleConfigClasspathin classConfigPropertiesCascadeBase- Returns:
- the classpath of the example config file
-
-