English | Site Directory

Android - An Open Handset Alliance Project

java.security
public final class

java.security.Permissions

java.lang.Object
java.security.PermissionCollection Serializable
java.security.Permissions Serializable

A heterogeneous collection of permissions.

Summary

Public Constructors

          Permissions()

Public Methods

        void  add(Permission permission)
Adds the argument to the collection.
        Enumeration  elements()
Answers an enumeration of the permissions in the receiver.
        boolean  implies(Permission permission)
Indicates whether the argument permission is implied by the permissions contained in the receiver.
Methods inherited from class java.security.PermissionCollection
Methods inherited from class java.lang.Object

Details

Public Constructors

public Permissions()

Public Methods

public void add(Permission permission)

Adds the argument to the collection.

Parameters

permission java.security.Permission the permission to add to the collection

public Enumeration elements()

Answers an enumeration of the permissions in the receiver.

Returns

  • Enumeration the permissions in the receiver.

public boolean implies(Permission permission)

Indicates whether the argument permission is implied by the permissions contained in the receiver.

Parameters

permission java.security.Permission the permission to check

Returns

  • boolean true if the argument permission is implied by the permissions in the receiver, and false if it is not.
Build m5-rc15i - 10 Jun 2008 13:54