org.bouncycastle.util
Class Properties
java.lang.Object
|
+--org.bouncycastle.util.Properties
- public class Properties
- extends java.lang.Object
Utility method for accessing system properties.
Method Summary |
static java.math.BigInteger |
asBigInteger(java.lang.String propertyName)
|
static java.util.Set |
asKeySet(java.lang.String propertyName)
|
static boolean |
isOverrideSet(java.lang.String propertyName)
Return whether a particular override has been set to true. |
static boolean |
removeThreadOverride(java.lang.String propertyName)
Enable the specified override property in the current thread only. |
static boolean |
setThreadOverride(java.lang.String propertyName,
boolean enable)
Enable the specified override property for the current thread only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isOverrideSet
public static boolean isOverrideSet(java.lang.String propertyName)
- 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.
setThreadOverride
public static boolean setThreadOverride(java.lang.String propertyName,
boolean enable)
- Enable the specified override property for the current thread only.
- Parameters:
propertyName
- the property name for the override.enable
- true if the override should be enabled, false if it should be disabled.- Returns:
- true if the override was already set, false otherwise.
removeThreadOverride
public static boolean removeThreadOverride(java.lang.String propertyName)
- Enable the specified override property in the current thread only.
- Parameters:
propertyName
- the property name for the override.- Returns:
- true if the override set true in thread local, false otherwise.
asBigInteger
public static java.math.BigInteger asBigInteger(java.lang.String propertyName)
asKeySet
public static java.util.Set asKeySet(java.lang.String propertyName)