java.security
Class AccessController

java.lang.Object
  extended by java.security.AccessController

@TransactionType(value=NOT_SUPPORTED)
public final class AccessController
extends Object


Method Summary
static void checkPermission(Permission perm)
          Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkPermission

public static void checkPermission(Permission perm)
                            throws AccessControlException
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect. This method quietly returns if the access request is permitted, or throws a suitable AccessControlException otherwise.

Parameters:
perm - the requested permission.
Throws:
AccessControlException - if the specified permission is not permitted, based on the current security policy.
NullPointerException - if the specified permission is null and is checked based on the security policy currently in effect.


Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.