Name
Permissions
Synopsis
This
class stores an arbitrary collection of Permission
objects. When Permission
objects are added with
the add( )
method, they are grouped into an
internal set of PermissionCollection
objects that
contain only a single type of Permission
. Use the
elements( )
method to obtain an
Enumeration
of the Permission
objects in the collection. Use implies( )
to
determine if a specified Permission
is implied by
any of the Permission
objects in the collection.
Permissions
is used by system code that manages
security policies. Applications rarely need to use it.
Figure 14-29. java.security.Permissions
public final class Permissions extends PermissionCollection implements Serializable { // Public Constructors public Permissions( ); // Public Methods Overriding PermissionCollection public void add(Permission permission); public java.util.Enumeration<Permission> elements( ); public boolean implies(Permission permission); }
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.