public final class UnresolvedPermission extends Permission
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.
Permission,
Permissions,
PermissionCollection,
Policy,
Serialized Form| Constructor and Description |
|---|
UnresolvedPermission(String type,
String name,
String actions,
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This method tests this permission for equality against the specified
Object. |
String |
getActions()
This method returns the list of actions associated with this
permission.
|
String |
getUnresolvedActions()
Return the actions of the unresolved permission, or null
if there are no actions.
|
Certificate[] |
getUnresolvedCerts()
Return the certificates of the unresolved permission.
|
String |
getUnresolvedName()
Return the name of the unresolved permission.
|
String |
getUnresolvedType()
Return the name of the class of the unresolved permission.
|
int |
hashCode()
Returns a hash code value for this object.
|
boolean |
implies(Permission perm)
This method returns
false always to indicate that this
permission does not imply the specified permission. |
PermissionCollection |
newPermissionCollection()
This class returns a
PermissionCollection object that can
be used to store instances of UnresolvedPermission. |
String |
toString()
This method returns a
String representation of this
class. |
checkGuard, getNamepublic UnresolvedPermission(String type, String name, String actions, Certificate[] certs)
type - the fully-qualified name of the class of this permissionname - the name of this permissionactions - the action list for this permissioncerts - the list of certificates that sign this permissionpublic boolean implies(Permission perm)
false always to indicate that this
permission does not imply the specified permission. An
UnresolvedPermission never grants any permissions.implies in class Permissionperm - the Permission object to testpublic boolean equals(Object obj)
Object. This will be true if and only if the following
conditions are met:Object is an UnresolvedPermissionequals in class Permissionobj - the Object to test for equalityObject.hashCode()public int hashCode()
hashCode in class PermissionObject.equals(Object),
System.identityHashCode(Object)public String getActions()
getActions in class Permissionpublic String toString()
String representation of this
class. The format is: '(unresolved "ClassName "name" "actions")'toString in class PermissionString representation of this objectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)public PermissionCollection newPermissionCollection()
PermissionCollection object that can
be used to store instances of UnresolvedPermission.newPermissionCollection in class PermissionPermissionCollectionpublic String getUnresolvedType()
public String getUnresolvedName()
public String getUnresolvedActions()
public Certificate[] getUnresolvedCerts()