to top
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)

Since: API Level 1

Public Methods

public void checkGuard (Object obj)

Since: 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 ()

Since: API Level 1

public final String getName ()

Since: API Level 1

public abstract boolean implies (Permission permission)

Since: API Level 1

public PermissionCollection newPermissionCollection ()

Since: API Level 1