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
  • Constructor Details

    • ReadEnvironmentPropertyAction

      public ReadEnvironmentPropertyAction(String propertyName)
      Construct a new instance.
      Parameters:
      propertyName - the environment property to read
    • ReadEnvironmentPropertyAction

      public ReadEnvironmentPropertyAction(String propertyName, String defaultValue)
      Construct a new instance.
      Parameters:
      propertyName - the environment property to read
      defaultValue - the value to return if the property is not present
  • Method Details