Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public abstract class

Permission

extends Object
implements Serializable Guard
java.lang.Object
   ↳ java.security.Permission
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Legacy security code; do not use.

Summary

Public Constructors
Permission ( String name)
Public Methods
void checkGuard ( Object obj)
Checks whether access to the specified Object should be granted.
abstract String getActions ()
final String getName ()
abstract boolean implies ( Permission permission)
PermissionCollection newPermissionCollection ()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.Guard

Public Constructors

public Permission ( String name)

Added in API level 1

Public Methods

public void checkGuard ( Object obj)

Added in API level 1

Checks whether access to the specified Object should be granted. This method returns silently if access is granted, otherwise a SecurityException is thrown.

Parameters
obj the object to be protected by this Guard .

public abstract String getActions ()

Added in API level 1

public final String getName ()

Added in API level 1

public abstract boolean implies ( Permission permission)

Added in API level 1

public PermissionCollection newPermissionCollection ()

Added in API level 1