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)

Since: API Level 1

public static T doPrivileged (PrivilegedExceptionAction<T> action)

Since: API Level 1

Calls action.run().

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

Since: API Level 1

Calls action.run().

public static T doPrivileged (PrivilegedAction<T> action)

Since: API Level 1

Calls action.run().

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

Since: API Level 1

Calls action.run().

public static T doPrivilegedWithCombiner (PrivilegedAction<T> action)

Since: API Level 9

Calls action.run().

public static T doPrivilegedWithCombiner (PrivilegedExceptionAction<T> action)

Since: API Level 9

Calls action.run().

public static AccessControlContext getContext ()

Since: API Level 1