to top
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 doPrivileged(PrivilegedAction<T> action, AccessControlContext context)
Calls action.run().
static <T> T doPrivileged(PrivilegedAction<T> action)
Calls action.run().
static <T> T 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().

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().

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