Class ReadEnvironmentPropertyAction
java.lang.Object
org.wildfly.security.manager.action.ReadEnvironmentPropertyAction
- All Implemented Interfaces:
PrivilegedAction<String>
A security action which reads an environment property.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionReadEnvironmentPropertyAction(String propertyName) Construct a new instance.ReadEnvironmentPropertyAction(String propertyName, String defaultValue) Construct a new instance. -
Method Summary
-
Constructor Details
-
ReadEnvironmentPropertyAction
Construct a new instance.- Parameters:
propertyName- the environment property to read
-
ReadEnvironmentPropertyAction
Construct a new instance.- Parameters:
propertyName- the environment property to readdefaultValue- the value to return if the property is not present
-
-
Method Details
-
run
- Specified by:
runin interfacePrivilegedAction<String>
-