|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.Permission
java.security.UnresolvedPermission
public final class UnresolvedPermission
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.
Permission,
Permissions,
PermissionCollection,
Policy,
Serialized Form| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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 permission| Method Detail |
|---|
public 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 test
public boolean equals(Object obj)
Object. This will be true if and only if the following
conditions are met:Object is an UnresolvedPermission
equals in class Permissionobj - the Object to test for equality
Object.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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||