Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect, and the context in this object. The request is allowed only if every ProtectionDomain in the context implies the permission. Otherwise the request is denied.
This method quietly returns if the access request is permitted, or throws a suitable AccessControlException otherwise.
@param perm the requested permission.
@exception AccessControlException if the specified permissionis not permitted, based on the current security policy and the context encapsulated by this object.
@exception NullPointerException if the permission to check for is null.