| Package | Description |
|---|---|
| java.security | |
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| 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. |
| 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.