Class AccessController
AccessController was used with the Security Manager for access
control operations and decisions. This feature no longer exists.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckPermission(Permission perm) Deprecated, for removal: This API element is subject to removal in a future version.ThrowsAccessControlException.static <T> TdoPrivileged(PrivilegedAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivileged(PrivilegedAction<T> action, AccessControlContext context) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivileged(PrivilegedAction<T> action, AccessControlContext context, Permission... perms) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivileged(PrivilegedExceptionAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivilegedWithCombiner(PrivilegedAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivilegedWithCombiner(PrivilegedAction<T> action, AccessControlContext context, Permission... perms) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TDeprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static <T> TdoPrivilegedWithCombiner(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.static AccessControlContextDeprecated, for removal: This API element is subject to removal in a future version.Returns anAccessControlContextwhere thecheckPermissionmethod always throws anAccessControlExceptionand thegetDomainCombinermethod always returnsnull.
-
Method Details
-
doPrivileged
Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an (unchecked) exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedAction'srunmethod- Parameters:
action- the action to be performed- Returns:
- the value returned by the action's
runmethod - Throws:
NullPointerException- if the action isnull- See Also:
-
doPrivilegedWithCombiner
Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an (unchecked) exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedAction'srunmethod- Parameters:
action- the action to be performed- Returns:
- the value returned by the action's
runmethod - Throws:
NullPointerException- if the action isnull- Since:
- 1.6
-
doPrivileged
Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an (unchecked) exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedAction'srunmethod- Parameters:
action- the action to be performed.context- ignored- Returns:
- the value returned by the action's
runmethod - Throws:
NullPointerException- if the action isnull
-
doPrivileged
public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context, Permission... perms) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an (unchecked) exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedAction'srunmethod- Parameters:
action- the action to be performedcontext- ignoredperms- ignored- Returns:
- the value returned by the action's
runmethod - Throws:
NullPointerException- if action isnull- Since:
- 1.8
-
doPrivilegedWithCombiner
public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action, AccessControlContext context, Permission... perms) Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an (unchecked) exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedAction'srunmethod- Parameters:
action- the action to be performedcontext- ignoredperms- ignored- Returns:
- the value returned by the action's
runmethod - Throws:
NullPointerException- if action isnull- Since:
- 1.8
-
doPrivileged
public static <T> T doPrivileged(PrivilegedExceptionAction<T> action) throws PrivilegedActionException Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an unchecked exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedExceptionAction'srunmethod- Parameters:
action- the action to be performed- Returns:
- the value returned by the action's
runmethod - Throws:
PrivilegedActionException- if the specified action'srunmethod threw a checked exceptionNullPointerException- if the action isnull
-
doPrivilegedWithCombiner
public static <T> T doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action) throws PrivilegedActionException Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an unchecked exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedExceptionAction'srunmethod- Parameters:
action- the action to be performed- Returns:
- the value returned by the action's
runmethod - Throws:
PrivilegedActionException- if the specified action'srunmethod threw a checked exceptionNullPointerException- if the action isnull- Since:
- 1.6
-
doPrivileged
public static <T> T doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) throws PrivilegedActionException Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an unchecked exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedExceptionAction'srunmethod- Parameters:
action- the action to be performedcontext- ignored- Returns:
- the value returned by the action's
runmethod - Throws:
PrivilegedActionException- if the specified action'srunmethod threw a checked exceptionNullPointerException- if the action isnull- See Also:
-
doPrivileged
public static <T> T doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms) throws PrivilegedActionException Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an (unchecked) exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedExceptionAction'srunmethod- Parameters:
action- the action to be performedcontext- ignoredperms- ignored- Returns:
- the value returned by the action's
runmethod - Throws:
PrivilegedActionException- if the specified action'srunmethod threw a checked exceptionNullPointerException- if action isnull- Since:
- 1.8
-
doPrivilegedWithCombiner
public static <T> T doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms) throws PrivilegedActionException Deprecated, for removal: This API element is subject to removal in a future version.Performs the specified action.If the action's
runmethod throws an (unchecked) exception, it will propagate through this method.- Type Parameters:
T- the type of the value returned by the PrivilegedExceptionAction'srunmethod- Parameters:
action- the action to be performedcontext- ignoredperms- ignored- Returns:
- the value returned by the action's
runmethod - Throws:
PrivilegedActionException- if the specified action'srunmethod threw a checked exceptionNullPointerException- if action isnull- Since:
- 1.8
-
getContext
Deprecated, for removal: This API element is subject to removal in a future version.Returns anAccessControlContextwhere thecheckPermissionmethod always throws anAccessControlExceptionand thegetDomainCombinermethod always returnsnull.- Returns:
- an
AccessControlContextas specified above - See Also:
-
checkPermission
Deprecated, for removal: This API element is subject to removal in a future version.ThrowsAccessControlException.- Parameters:
perm- ignored- Throws:
AccessControlException- always
-