Team LiB
Previous Section Next Section

Permissionsjava.security

Java 1.2serializable

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);  
}

    Team LiB
    Previous Section Next Section