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