Collections of utility methods to deal with the scheduled removal of the security classes defined by JEP 411.
| Modifier and Type | Field and Description |
|---|---|
| private static final MethodHandle | |
| private static final MethodHandle |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> PrivilegedAction | |
| public static void | checkPermission(Permission
the permission to check permission)Checks the given permission, if the |
| public static < the type of the result T> T | |
| public static < the type of the result T> T | Returns: the result of running the actionthe action to run action)Runs the given action with the calling context restricted to just the calling frame, not all the frames in the stack. |
| private static <T> T | |
| public static Object | Returns: the current security manager, if availableGet the current security manager, if available. |
| private static MethodHandle | |
| private static MethodHandle |
| doAs | back to summary |
|---|---|
| private static final MethodHandle doAs | |
| doPrivileged | back to summary |
|---|---|
| private static final MethodHandle doPrivileged | |
| SecurityUtils | back to summary |
|---|---|
| private SecurityUtils() | |
| callableToPrivilegedAction | back to summary |
|---|---|
| private static <T> PrivilegedAction | |
| checkPermission | back to summary |
|---|---|
| public static void checkPermission(Permission permission) throws SecurityException Checks the given permission, if the
| |
| doAs | back to summary |
|---|---|
| public static <T> T doAs(Subject subject, Callable<T> action) Runs the given action as the given subject.
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(PrivilegedAction<T> action) Runs the given action with the calling context restricted to just the calling frame, not all the frames in the stack.
| |
| doPrivileged | back to summary |
|---|---|
private static <T> T doPrivileged(MethodHandle doPrivileged, PrivilegedAction<T> action)
| |
| getSecurityManager | back to summary |
|---|---|
| public static Object getSecurityManager() Get the current security manager, if available.
| |
| lookupDoAs | back to summary |
|---|---|
| private static MethodHandle lookupDoAs() | |
| lookupDoPrivileged | back to summary |
|---|---|
| private static MethodHandle lookupDoPrivileged() | |