Class PrivilegedGetSystemProperty
- java.lang.Object
-
- org.eclipse.persistence.internal.security.PrivilegedGetSystemProperty
-
- All Implemented Interfaces:
java.security.PrivilegedAction<java.lang.String>
public class PrivilegedGetSystemProperty extends java.lang.Object implements java.security.PrivilegedAction<java.lang.String>
INTERNAL: RetrieveSystem
property with privileges enabled.
-
-
Constructor Summary
Constructors Constructor Description PrivilegedGetSystemProperty(java.lang.String key)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled.PrivilegedGetSystemProperty(java.lang.String key, java.lang.String def)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
run()
INTERNAL: PerformsSystem
property retrieval.
-
-
-
Constructor Detail
-
PrivilegedGetSystemProperty
public PrivilegedGetSystemProperty(java.lang.String key)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled. SelectsSystem
property getter without default value to be executed so getter will returnnull
if property withkey
does not exist.- Parameters:
key
- The name of theSystem
property.
-
PrivilegedGetSystemProperty
public PrivilegedGetSystemProperty(java.lang.String key, java.lang.String def)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled. SelectsSystem
property getter with default value to be executed so getter will returndef
if property withkey
does not exist.- Parameters:
key
- The name of theSystem
property.- Since:
- 2.7
-
-
Method Detail
-
run
public java.lang.String run()
INTERNAL: PerformsSystem
property retrieval. This method will be called byAccessController.doPrivileged(PrivilegedAction)
after enabling privileges.- Specified by:
run
in interfacejava.security.PrivilegedAction<java.lang.String>
- Returns:
- The
String
value of the system property.
-
-