Name
AccessControlException
Synopsis
Thrown
by AccessController
to signal that an access
request has been denied. getPermission( )
returns
the Permission
object, if any, that was involved
in the denied request.
Figure 14-1. java.security.AccessControlException
public class AccessControlException extends SecurityException { // Public Constructors public AccessControlException(String s); public AccessControlException(String s, Permission p); // Public Instance Methods public Permission getPermission( ); }
Thrown By
AccessControlContext.checkPermission( )
,
AccessController.checkPermission( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.