Class 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: Retrieve System property with privileges enabled.
    • Constructor Summary

      Constructors 
      Constructor Description
      PrivilegedGetSystemProperty​(java.lang.String key)
      INTERNAL: Creates an instance of System property getter with privileges enabled.
      PrivilegedGetSystemProperty​(java.lang.String key, java.lang.String def)
      INTERNAL: Creates an instance of System property getter with privileges enabled.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String run()
      INTERNAL: Performs System property retrieval.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrivilegedGetSystemProperty

        public PrivilegedGetSystemProperty​(java.lang.String key)
        INTERNAL: Creates an instance of System property getter with privileges enabled. Selects System property getter without default value to be executed so getter will return null if property with key does not exist.
        Parameters:
        key - The name of the System property.
      • PrivilegedGetSystemProperty

        public PrivilegedGetSystemProperty​(java.lang.String key,
                                           java.lang.String def)
        INTERNAL: Creates an instance of System property getter with privileges enabled. Selects System property getter with default value to be executed so getter will return def if property with key does not exist.
        Parameters:
        key - The name of the System property.
        Since:
        2.7
    • Method Detail

      • run

        public java.lang.String run()
        INTERNAL: Performs System property retrieval. This method will be called by AccessController.doPrivileged(PrivilegedAction) after enabling privileges.
        Specified by:
        run in interface java.security.PrivilegedAction<java.lang.String>
        Returns:
        The String value of the system property.