Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.security |
Provides the classes and interfaces for the security framework.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
java.util.logging |
Provides the classes and interfaces of the CLDC platform's core logging facilities.
|
Modifier and Type | Class and Description |
---|---|
class |
FilePermission
This class represents access to a file or directory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FilePermission.implies(Permission p)
Checks if this FilePermission object "implies" the specified permission.
|
Modifier and Type | Class and Description |
---|---|
class |
RuntimePermission
This class is for runtime permissions.
|
Modifier and Type | Method and Description |
---|---|
void |
SecurityManager.checkPermission(Permission perm)
Throws a
SecurityException if the requested
access, specified by the given permission, is not permitted based
on the security policy currently in effect. |
Modifier and Type | Class and Description |
---|---|
class |
BasicPermission
The BasicPermission class extends the Permission class, and
can be used as the base class for permissions that want to
follow the same naming convention as BasicPermission.
|
Modifier and Type | Method and Description |
---|---|
Permission |
AccessControlException.getPermission()
Gets the Permission object associated with this exception, or
null if there was no corresponding Permission object.
|
Modifier and Type | Method and Description |
---|---|
abstract Enumeration<Permission> |
PermissionCollection.elements()
Returns an enumeration of all the Permission objects in the collection.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
PermissionCollection.add(Permission permission)
Adds a permission object to the current collection of permission objects.
|
static void |
AccessController.checkPermission(Permission perm)
Determines whether the access request indicated by the
specified permission should be allowed or denied, based on
the security policy.
|
abstract boolean |
PermissionCollection.implies(Permission permission)
Checks to see if the specified permission is implied by
the collection of Permission objects held in this PermissionCollection.
|
abstract boolean |
Permission.implies(Permission permission)
Checks if the specified permission's actions are "implied by"
this object's actions.
|
boolean |
BasicPermission.implies(Permission p)
Checks if the specified permission is "implied" by
this object.
|
Constructor and Description |
---|
AccessControlException(String s,
Permission p)
Constructs an
AccessControlException with the
specified, detailed message, and the requested permission that caused
the exception. |
Modifier and Type | Class and Description |
---|---|
class |
PropertyPermission
This class is for property permissions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PropertyPermission.implies(Permission p)
Checks if this PropertyPermission object "implies" the specified
permission.
|
Modifier and Type | Class and Description |
---|---|
class |
LoggingPermission
The permission which the SecurityManager will check when code
that is running with a SecurityManager calls one of the logging
control methods (such as Logger.setLevel).
|
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.