[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/java/security/PermissionCollection [Back]  [Original]

PermissionCollection  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 1

PermissionCollection

public abstract class PermissionCollection
extends Object implements Serializable

java.lang.Object
   ↳ java.security.PermissionCollection


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

Summary

Public constructors

PermissionCollection()

Public methods

abstract void add(Permission permission)

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

abstract Enumeration<Permission> elements()

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

abstract boolean implies(Permission permission)

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

boolean isReadOnly()
void setReadOnly()

Inherited methods

Public constructors

PermissionCollection

Added in API level 1
public PermissionCollection ()

Public methods

add

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

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

Parameters
permission Permission: the Permission object to add.

Throws
IllegalArgumentException - if this PermissionCollection object is a homogeneous collection and the permission is not of the correct type.
SecurityException - if this PermissionCollection object has been marked readonly

elements

Added in API level 1
public abstract 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 abstract 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.

isReadOnly

Added in API level 1
public boolean isReadOnly ()

Returns
boolean

setReadOnly

Added in API level 1
public void setReadOnly ()

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page