public final class SystemPropertiesManager extends Object
com.sun.identity.systemconfiguration
e.g.
java -D"com.sun.identity.systemconfiguration=mypkg.myconfig"
com.sun.identity.common.SystemConfigurationUtil
com.sun.identity.configuration.SystemProperties
Modifier and Type | Method and Description |
---|---|
static String |
get(String key)
Returns property string.
|
static String |
get(String key,
String defaultValue)
Returns property string.
|
static boolean |
getAsBoolean(String key)
Returns the property value as a boolean
|
static boolean |
getAsBoolean(String key,
boolean defaultValue)
Returns the property value as a boolean.
|
static int |
getAsInt(String key,
int defaultValue)
Returns property as an integer, returning the default if the property is not set or cannot be parsed as an
integer.
|
static ISystemProperties |
getSystemProperties()
Returns system properties implementation class.
|
static void |
initializeProperties(Properties properties)
Initializes the properties to be used by Open Federation Library.
|
static void |
initializeProperties(String propertyName,
String propertyValue)
Initializes the properties map.
|
public static ISystemProperties getSystemProperties()
public static String get(String key)
key
- Key of the property.public static String get(String key, String defaultValue)
key
- Key of the property.defaultValue
- Default value if the property is not found.public static boolean getAsBoolean(String key)
key
- the key whose value one is looking for.public static boolean getAsBoolean(String key, boolean defaultValue)
key
- The key whose value one is looking for.defaultValue
- The default value to return when the setting is not defined.public static int getAsInt(String key, int defaultValue)
key
- the system property name.defaultValue
- the default value to use if the property is not present or not an integer.public static void initializeProperties(Properties properties)
properties
- properties for Open Federation LibraryCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.