## Uses of Interface
java.security.PrivilegedAction

- Packages that use PrivilegedAction
  Package | Description
  --- | ---
  java.security |
  java.util.concurrent | Utility classes commonly useful in concurrent programming.

- - ### Uses of PrivilegedAction in java.security

    Methods in java.security with parameters of type PrivilegedAction
    Modifier and Type | Method and Description
    --- | ---
    `static <T> T` | AccessController.`doPrivileged(PrivilegedAction<T> action)` Performs the specified `PrivilegedAction` with privileges enabled.
    `static <T> T` | AccessController.`doPrivileged(PrivilegedAction<T> action, AccessControlContext context)` Performs the specified `PrivilegedAction` with privileges enabled and restricted by the specified `AccessControlContext`.
    `static <T> T` | AccessController.`doPrivilegedWithCombiner(PrivilegedAction<T> action)` Performs the specified `PrivilegedAction` with privileges enabled.

  - ### Uses of PrivilegedAction in java.util.concurrent

    Methods in java.util.concurrent with parameters of type PrivilegedAction
    Modifier and Type | Method and Description
    --- | ---
    `static Callable<Object>` | Executors.`callable(PrivilegedAction<?> action)` Returns a `Callable` object that, when called, runs the given privileged action and returns its result.

Copyright © 2025 API Design. All Rights Reserved.