Added in API level 1

Permissions

public final class Permissions
extends PermissionCollection implements Serializable

java.lang.Object
   ↳ java.security.PermissionCollection
     ↳ java.security.Permissions


Android doesn't support SecurityManager. Do not use this class.

Summary

Public constructors

Permissions()

Public methods

void add(Permission permission)

Adds a permission object to the current collection of permission objects.

Enumeration<Permission> elements()

Returns an enumeration of all the Permission objects in the collection.

boolean implies(Permission permission)

Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection.

Inherited methods

Public constructors

Permissions

Added in API level 1
public Permissions ()

Public methods

add

Added in API level 1
public void add (Permission permission)

Adds a permission object to the current collection of permission objects.

Parameters
permission Permission: the Permission object to add.

elements

Added in API level 1
public Enumeration<Permission> elements ()

Returns an enumeration of all the Permission objects in the collection.

Returns
Enumeration<Permission> an enumeration of all the Permissions.

implies

Added in API level 1
public boolean implies (Permission permission)

Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection.

Parameters
permission Permission: the Permission object to compare.

Returns
boolean true if "permission" is implied by the permissions in the collection, false if not.