加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090327210039/http://developer.android.com:80/reference/java/security/Permissions.html
public final class

Permissions

extends PermissionCollection
implements Serializable
java.lang.Object
   ↳ java.security.PermissionCollection
     ↳ java.security.Permissions

Class Overview

A heterogeneous collection of permissions.

Summary

Public Constructors
Permissions()
Public Methods
void add(Permission permission)
Adds the argument to the collection.
Enumeration<Permission> elements()
Returns 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.
[Expand]
Inherited Methods
From class java.security.PermissionCollection
From class java.lang.Object

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<Permission> elements ()

Returns 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.