Package org.h2.security.auth
Class ConfigProperties
java.lang.Object
org.h2.security.auth.ConfigProperties
wrapper for configuration properties
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigProperties
(Collection<PropertyConfig> configProperties) ConfigProperties
(PropertyConfig... configProperties) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanValue
(String name, boolean defaultValue) Returns the boolean value of specified property.int
getIntValue
(String name) Returns the integer value of specified property.int
getIntValue
(String name, int defaultValue) Returns the integer value of specified property.getStringValue
(String name) Returns the string value of specified property.getStringValue
(String name, String defaultValue) Returns the string value of specified property.
-
Field Details
-
properties
-
-
Constructor Details
-
ConfigProperties
public ConfigProperties() -
ConfigProperties
-
ConfigProperties
-
-
Method Details
-
getStringValue
Returns the string value of specified property.- Parameters:
name
- property name.defaultValue
- default value.- Returns:
- the string property value or
defaultValue
if the property is missing.
-
getStringValue
Returns the string value of specified property.- Parameters:
name
- property name.- Returns:
- the string property value.
- Throws:
AuthConfigException
- if the property is missing.
-
getIntValue
Returns the integer value of specified property.- Parameters:
name
- property name.defaultValue
- default value.- Returns:
- the integer property value or
defaultValue
if the property is missing.
-
getIntValue
Returns the integer value of specified property.- Parameters:
name
- property name.- Returns:
- the integer property value.
- Throws:
AuthConfigException
- if the property is missing.
-
getBooleanValue
Returns the boolean value of specified property.- Parameters:
name
- property name.defaultValue
- default value.- Returns:
- the boolean property value or
defaultValue
if the property is missing.
-