API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. AccessController View Source
Author(s)
Li Gong
Roland Schemers
Since
Version
1.59 05/11/17
Serial
Hierarchy
 Object
      AccessController
Implements
Subclasses
Description
publicfinal class AccessController
  The AccessController class is used for access control operations and decisions.
See also:    AccessControlContext
Constructors
private AccessController ()
Don't allow anyone to instantiate an AccessController
Methods
Hide/Show inherited methods
publicstatic void checkPermission (Permission perm) throws AccessControlException
  Determines whether the access request indicated by the specified permission should be allowed or denied, based on the current AccessControlContext and security policy.
publicstaticnative T doPrivileged (PrivilegedAction< T> action)
  Performs the specified PrivilegedAction with privileges enabled.
publicstaticnative T doPrivileged (PrivilegedAction< T> action, AccessControlContext context)
  Performs the specified PrivilegedAction with privileges enabled and restricted by the specified AccessControlContext.
publicstaticnative T doPrivileged (PrivilegedExceptionAction< T> action) throws PrivilegedActionException
  Performs the specified PrivilegedExceptionAction with privileges enabled.
publicstaticnative T doPrivileged (PrivilegedExceptionAction< T> action, AccessControlContext context) throws PrivilegedActionException
  Performs the specified PrivilegedExceptionAction with privileges enabled and restricted by the specified AccessControlContext.
publicstatic T doPrivilegedWithCombiner (PrivilegedAction< T> action)
  Performs the specified PrivilegedAction with privileges enabled.
publicstatic T doPrivilegedWithCombiner (PrivilegedExceptionAction< T> action) throws PrivilegedActionException
  Performs the specified PrivilegedExceptionAction with privileges enabled.
publicstatic AccessControlContext getContext ()
  This method takes a "snapshot" of the current calling context, which includes the current Thread's inherited AccessControlContext, and places it in an AccessControlContext object.
pack-privatestaticnative AccessControlContext getInheritedAccessControlContext ()
  Returns the "inherited" AccessControl context.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar