Android APIs
public abstract class

Permission

extends Object
implements Guard Serializable
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

Parameters
name String

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 Object: the object to be protected by this Guard.
Throws
SecurityException

public abstract String getActions ()

Added in API level 1

Returns
String

public final String getName ()

Added in API level 1

Returns
String

public abstract boolean implies (Permission permission)

Added in API level 1

Parameters
permission Permission
Returns
boolean

public PermissionCollection newPermissionCollection ()

Added in API level 1