java.security
Class UnresolvedPermission
java.lang.Object
|
+--java.security.Permission
|
+--java.security.UnresolvedPermission
public final class
UnresolvedPermissionextends
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:- Aaron M. Renn (arenn@urbanophile.com)
See Also:
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:
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:
- The specified
Object
is an UnresolvedPermission
- The specified permission has the same type (i.e., desired class name)
as this permission.
- The specified permission has the same name as this one.
- The specified permissoin has the same action list as this one.
- The specified permission has the same certificate list as this
one.
Parameters:
Returns:
- true if the specified object is equal to this one
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:
- false; until a permission is resolved, it implies nothing
newPermissionCollection
public PermissionCollection newPermissionCollection()
This class returns a PermissionCollection
object that can
be used to store instances of UnresolvedPermission
.
Returns:
- a new
PermissionCollection
toString
public String toString()
This method returns a String
representation of this
class. The format is: '(unresolved "ClassName "name" "actions")'
Returns:
String
representation of this object
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 existingUnresolvedPermission
objects and they are converted to objects of the appropriate permission type if the class for that type is then available.