Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Class UnresolvedPermission

java.lang.Object
|
+--java.security.Permission
   |
   +--java.security.UnresolvedPermission


public final class UnresolvedPermission

extends Permission

This class is used to hold instances of all permissions that cannot be resolved to available permission classes when the security Policy object is instantiated. This may happen when the necessary security class has not yet been downloaded from the network.

Instances of this class are re-resolved when AccessController check is done. At that time, a scan is made of all existing UnresolvedPermission objects and they are converted to objects of the appropriate permission type if the class for that type is then available.

Since:Author:See Also:

Constructor Summary

UnresolvedPermission(java.lang.String type, java.lang.String name, java.lang.String actions, java.security.Certificate[] certs)

Create a new instance with all the information necessary to resolve it to an instance of the proper class at a future time.

Method Summary

booleanequals(java.lang.Object obj)

This method tests this permission for equality against the specified Object.
java.lang.StringgetActions()

This method returns the list of actions associated with this permission.
inthashCode()

Returns a hash code value for this object.
booleanimplies(java.security.Permission perm)

This method returns false always to indicate that this permission does not imply the specified permission.
java.security.PermissionCollectionnewPermissionCollection()

This class returns a PermissionCollection object that can be used to store instances of UnresolvedPermission.
java.lang.StringtoString()

This method returns a String representation of this class.

Constructor Details

UnresolvedPermission

public UnresolvedPermission(java.lang.String type, java.lang.String name, java.lang.String actions, java.security.Certificate[] certs)

Create a new instance with all the information necessary to resolve it to an instance of the proper class at a future time.

Parameters:


Method Details

equals

public boolean equals(java.lang.Object obj)

This method tests this permission for equality against the specified Object. This will be true if and only if the following conditions are met:

Parameters:

Returns:


getActions

public String getActions()

This method returns the list of actions associated with this permission.

Returns:


hashCode

public int hashCode()

Returns a hash code value for this object. Following the lead of Permission, this returns the hashcode of the permission name.

Returns:


implies

public boolean implies(java.security.Permission perm)

This method returns false always to indicate that this permission does not imply the specified permission. An UnresolvedPermission never grants any permissions.

Parameters:

Returns:


newPermissionCollection

public PermissionCollection newPermissionCollection()

This class returns a PermissionCollection object that can be used to store instances of UnresolvedPermission.

Returns:


toString

public String toString()

This method returns a String representation of this class. The format is: '(unresolved "ClassName "name" "actions")'

Returns: