Class ReadEnvironmentPropertyAction
- java.lang.Object
-
- org.wildfly.security.manager.action.ReadEnvironmentPropertyAction
-
- All Implemented Interfaces:
PrivilegedAction<String>
public final class ReadEnvironmentPropertyAction extends Object implements PrivilegedAction<String>
A security action which reads an environment property.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private String
defaultValue
private String
propertyName
-
Constructor Summary
Constructors Constructor Description ReadEnvironmentPropertyAction(String propertyName)
Construct a new instance.ReadEnvironmentPropertyAction(String propertyName, String defaultValue)
Construct a new instance.
-
-
-
Constructor Detail
-
ReadEnvironmentPropertyAction
public ReadEnvironmentPropertyAction(String propertyName)
Construct a new instance.- Parameters:
propertyName
- the environment property to read
-
-
Method Detail
-
run
public String run()
- Specified by:
run
in interfacePrivilegedAction<String>
-
-