Android
java.security
public final class

java.security.UnresolvedPermission

java.lang.Object
java.security.Permission Serializable Guard
java.security.UnresolvedPermission Serializable

Holds permissions which are of an unknown type when a policy file is read. Technically, the resolution of UnresolvedPermissions and substitution by actual permissions takes place in the implies() method of a Permissions collection, right before actual checking.

Summary

Public Constructors

            UnresolvedPermission(String type, String name, String actions, Certificate[] certs)
Constructs a new instance of this class with its type, name, and certificates set to the arguments by definition, actions are ignored

Public Methods

          boolean  equals(Object obj)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
          String  getActions()
Returns the actions associated with the receiver.
          String  getUnresolvedActions()
          Certificate[]  getUnresolvedCerts()
          String  getUnresolvedName()
          String  getUnresolvedType()
          int  hashCode()
Returns an integer hash code for the receiver.
          boolean  implies(Permission permission)
Indicates whether the argument permission is implied by the receiver.
          PermissionCollection  newPermissionCollection()
Returns a new PermissionCollection for holding permissions of this class.
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.
Methods inherited from class java.security.Permission
Methods inherited from class java.lang.Object
Methods inherited from interface java.security.Guard

Details

Public Constructors

public UnresolvedPermission(String type, String name, String actions, Certificate[] certs)

Constructs a new instance of this class with its type, name, and certificates set to the arguments by definition, actions are ignored

Parameters

type class of permission object
name identifies the permission that could not be resolved

Public Methods

public boolean equals(Object obj)

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. In this case, the receiver and the object must have the same class, permission name, actions, and certificates

Parameters

obj the object to compare with this object

Returns

  • true if the object is the same as this object, false otherwise.

See Also

public String getActions()

Returns the actions associated with the receiver. Since UnresolvedPermission objects have no actions, answer the empty string.

Returns

  • the actions associated with the receiver.

public String getUnresolvedActions()

public Certificate[] getUnresolvedCerts()

public String getUnresolvedName()

public String getUnresolvedType()

public int hashCode()

Returns an integer hash code for the receiver. Any two objects which answer true when passed to equals must answer the same value for this method.

Returns

  • the receiver's hash

See Also

public boolean implies(Permission permission)

Indicates whether the argument permission is implied by the receiver. UnresolvedPermission objects imply nothing because nothing is known about them yet. Before actual implication checking, this method tries to resolve UnresolvedPermissions (if any) against the passed instance. Successfully resolved permissions (if any) are taken into account during further processing.

Parameters

permission the permission to check

Returns

  • always replies false

public PermissionCollection newPermissionCollection()

Returns a new PermissionCollection for holding permissions of this class. Answer null if any permission collection can be used.

Returns

  • a new PermissionCollection or null

See Also

  • BasicPermissionCollection

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56