Added in API level 1
Summary:
Methods
| Inherited Methods
AccessController
public
final
class
AccessController
extends Object
java.lang.Object | |
↳ | java.security.AccessController |
Android doesn't support SecurityManager
. Do not use this class.
Summary
Public methods | |
---|---|
static
void
|
checkPermission(Permission perm)
|
static
<T>
T
|
doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context)
Calls |
static
<T>
T
|
doPrivileged(PrivilegedExceptionAction<T> action)
Calls |
static
<T>
T
|
doPrivileged(PrivilegedAction<T> action)
Calls |
static
<T>
T
|
doPrivileged(PrivilegedAction<T> action, AccessControlContext context)
Calls |
static
<T>
T
|
doPrivilegedWithCombiner(PrivilegedAction<T> action)
Calls |
static
<T>
T
|
doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action)
Calls |
static
AccessControlContext
|
getContext()
|
Inherited methods | |
---|---|
Public methods
checkPermission
Added in API level 1
public static void checkPermission (Permission perm)
Parameters | |
---|---|
perm |
Permission |
Throws | |
---|---|
AccessControlException |
doPrivileged
Added in API level 1
public static T doPrivileged (PrivilegedExceptionAction<T> action, AccessControlContext context)
Calls action.run()
.
Parameters | |
---|---|
action |
PrivilegedExceptionAction |
context |
AccessControlContext |
Returns | |
---|---|
T |
Throws | |
---|---|
PrivilegedActionException |
doPrivileged
Added in API level 1
public static T doPrivileged (PrivilegedExceptionAction<T> action)
Calls action.run()
.
Parameters | |
---|---|
action |
PrivilegedExceptionAction |
Returns | |
---|---|
T |
Throws | |
---|---|
PrivilegedActionException |
doPrivileged
Added in API level 1
public static T doPrivileged (PrivilegedAction<T> action)
Calls action.run()
.
Parameters | |
---|---|
action |
PrivilegedAction |
Returns | |
---|---|
T |
doPrivileged
Added in API level 1
public static T doPrivileged (PrivilegedAction<T> action, AccessControlContext context)
Calls action.run()
.
Parameters | |
---|---|
action |
PrivilegedAction |
context |
AccessControlContext |
Returns | |
---|---|
T |
doPrivilegedWithCombiner
Added in API level 9
public static T doPrivilegedWithCombiner (PrivilegedAction<T> action)
Calls action.run()
.
Parameters | |
---|---|
action |
PrivilegedAction |
Returns | |
---|---|
T |
doPrivilegedWithCombiner
Added in API level 9
public static T doPrivilegedWithCombiner (PrivilegedExceptionAction<T> action)
Calls action.run()
.
Parameters | |
---|---|
action |
PrivilegedExceptionAction |
Returns | |
---|---|
T |
Throws | |
---|---|
PrivilegedActionException |
getContext
Added in API level 1
public static AccessControlContext getContext ()
Returns | |
---|---|
AccessControlContext |