Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

AccessController

extends Object
java.lang.Object
   ↳ java.security.AccessController

Class Overview

Legacy security code; do not use.

Summary

Public Methods
static void checkPermission ( Permission permission)
static <T> T )">doPrivileged ( PrivilegedExceptionAction <T> action)
Calls action.run() .
static <T> T , java.security.AccessControlContext)">doPrivileged ( PrivilegedAction <T> action, AccessControlContext context)
Calls action.run() .
static <T> T )">doPrivileged ( PrivilegedAction <T> action)
Calls action.run() .
static <T> T , java.security.AccessControlContext)">doPrivileged ( PrivilegedExceptionAction <T> action, AccessControlContext context)
Calls action.run() .
static <T> T )">doPrivilegedWithCombiner ( PrivilegedAction <T> action)
Calls action.run() .
static <T> T )">doPrivilegedWithCombiner ( PrivilegedExceptionAction <T> action)
Calls action.run() .
static AccessControlContext getContext ()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void checkPermission ( Permission permission)

Added in API level 1
)">

public static T doPrivileged ( PrivilegedExceptionAction <T> action)

Added in API level 1

Calls action.run() .

, java.security.AccessControlContext)">

public static T doPrivileged ( PrivilegedAction <T> action, AccessControlContext context)

Added in API level 1

Calls action.run() .

)">

public static T doPrivileged ( PrivilegedAction <T> action)

Added in API level 1

Calls action.run() .

, java.security.AccessControlContext)">

public static T doPrivileged ( PrivilegedExceptionAction <T> action, AccessControlContext context)

Added in API level 1

Calls action.run() .

)">

public static T doPrivilegedWithCombiner ( PrivilegedAction <T> action)

Added in API level 9

Calls action.run() .

)">

public static T doPrivilegedWithCombiner ( PrivilegedExceptionAction <T> action)

Added in API level 9

Calls action.run() .

public static AccessControlContext getContext ()

Added in API level 1