Package org.bouncycastle.util
Class Properties
java.lang.Object
org.bouncycastle.util.Properties
Utility method for accessing system properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturn propertyName as an integer, defaultValue used if not defined.static StringgetPropertyValue(String propertyName) static StringgetPropertyValue(String propertyName, String alternative) static booleanisOverrideSet(String propertyName) Return whether a particular override has been set to true.static booleanisOverrideSetTo(String propertyName, boolean isTrue) Return whether a particular override has been set to false.
-
Constructor Details
-
Properties
public Properties()
-
-
Method Details
-
isOverrideSet
Return whether a particular override has been set to true.- Parameters:
propertyName- the property name for the override.- Returns:
- true if the property is set to "true", false otherwise.
-
isOverrideSetTo
Return whether a particular override has been set to false.- Parameters:
propertyName- the property name for the override.isTrue- true if the override should be true, false otherwise.- Returns:
- true if the property is set to the value of isTrue, false otherwise.
-
asInteger
Return propertyName as an integer, defaultValue used if not defined.- Parameters:
propertyName- name of property.defaultValue- integer to return if property not defined.- Returns:
- value of property, or default if not found, as an int.
-
getPropertyValue
-
getPropertyValue
-