Deprecated
for removal since 17.
This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.
AccessController was used with the Security Manager for access
control operations and decisions. This feature no longer exists.
| Modifier and Type | Field and Description |
|---|---|
| private static AccessControlContext | NO_PERMISSIONS_ACC
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static < the type of the value returned by the PrivilegedAction's
T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action)Performs the specified action. |
| public static < the type of the value returned by the PrivilegedAction's
T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed. action, AccessControlContext ignored context)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Performs the specified action. |
| public static < the type of the value returned by the PrivilegedAction's
T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action, AccessControlContext ignored context, Permission... ignored perms)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Performs the specified action. |
| public static < the type of the value returned by the
PrivilegedExceptionAction's T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action)Performs the specified action. |
| public static < the type of the value returned by the
PrivilegedExceptionAction's T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action, AccessControlContext ignored context)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Performs the specified action. |
| public static < the type of the value returned by the
PrivilegedExceptionAction's T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action, AccessControlContext ignored context, Permission... ignored perms)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Performs the specified action. |
| public static < the type of the value returned by the PrivilegedAction's
T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action)Performs the specified action. |
| public static < the type of the value returned by the PrivilegedAction's
T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action, AccessControlContext ignored context, Permission... ignored perms)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Performs the specified action. |
| public static < the type of the value returned by the
PrivilegedExceptionAction's T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action)Performs the specified action. |
| public static < the type of the value returned by the
PrivilegedExceptionAction's T> Trun method | Returns: the value returned by the action'srun methodthe action to be performed action, AccessControlContext ignored context, Permission... ignored perms)
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Performs the specified action. |
| public static AccessControlContext | Returns: anAccessControlContext as specified above
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
Returns an |
| private static PrivilegedActionException |
| NO_PERMISSIONS_ACC | back to summary |
|---|---|
| private static AccessControlContext NO_PERMISSIONS_ACC
References Deprecated
See corresponding docs for further information.
| |
| AccessController | back to summary |
|---|---|
| private AccessController() Don't allow anyone to instantiate an | |
| checkPermission | back to summary |
|---|---|
| public static void checkPermission(Permission perm) throws AccessControlException Throws API Note This method originally determined whether the access request
indicated by the specified permission should be allowed or denied,
based on the current
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(PrivilegedAction<T> action) Performs the specified action. If the action's API Note This method originally performed the specified
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context)
References Deprecated
See corresponding docs for further information. Performs the specified action.
If the action's API Note This method originally performed the specified
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)
References Deprecated
See corresponding docs for further information. Performs the specified action.
If the action's API Note This method originally performed the specified
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(PrivilegedExceptionAction<T> action) throws PrivilegedActionException Performs the specified action. If the action's API Note This method originally performed the specified
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) throws PrivilegedActionException
References Deprecated
See corresponding docs for further information. Performs the specified action.
If the action's API Note This method originally performed the specified
| |
| doPrivileged | back to summary |
|---|---|
| public static <T> T doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms) throws PrivilegedActionException
References Deprecated
See corresponding docs for further information. Performs the specified action.
If the action's API Note This method originally performed the specified
| |
| doPrivilegedWithCombiner | back to summary |
|---|---|
| public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) Performs the specified action. If the action's API Note This method originally performed the specified
| |
| doPrivilegedWithCombiner | back to summary |
|---|---|
| public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)
References Deprecated
See corresponding docs for further information. Performs the specified action.
If the action's API Note This method originally performed the specified
| |
| doPrivilegedWithCombiner | back to summary |
|---|---|
| public static <T> T doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action) throws PrivilegedActionException Performs the specified action. If the action's API Note This method originally performed the specified
| |
| doPrivilegedWithCombiner | back to summary |
|---|---|
| public static <T> T doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms) throws PrivilegedActionException
References Deprecated
See corresponding docs for further information. Performs the specified action.
If the action's API Note This method originally performed the specified
| |
| getContext | back to summary |
|---|---|
| public static AccessControlContext getContext()
References Deprecated
See corresponding docs for further information. Returns an API Note This method originally returned a snapshot of the current
calling context, which included the current thread's access
control context and any limited privilege scope. This method has
been changed to always return an innocuous
| |
| wrapException | back to summary |
|---|---|
| private static PrivilegedActionException wrapException(Exception e) | |