|
Build 1.0_r1(from source) | |||||||||
| 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
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.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
(package private) Permission |
resolve(Class targetType)
Tries to resolve this permission into the specified class. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| 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 - class of permission objectname - identifies the permission that could not be resolvedactions - certs - | Method Detail |
|---|
public boolean equals(Object obj)
equals in class Permissionobj - the object to compare with this object
true if the object is the same as this object,
false otherwise.hashCode()public int hashCode()
true when passed to equals must
answer the same value for this method.
hashCode in class Permissionequals(java.lang.Object)public String getActions()
getActions in class Permissionpublic String getUnresolvedName()
public String getUnresolvedActions()
public String getUnresolvedType()
public Certificate[] getUnresolvedCerts()
public boolean implies(Permission permission)
implies in class Permissionpermission - the permission to check
public String toString()
toString in class Permissionpublic PermissionCollection newPermissionCollection()
newPermissionCollection in class PermissionBasicPermissionCollectionPermission resolve(Class targetType)
getName()
of this unresolved permission), so no check is performed to verify this.
However, the class must have all required certificates (as per
getUnresolvedCerts()) among the passed collection of
signers. If it does, a zero, one, and/or two-argument constructor is
tried to instantiate a new permission, which is then returned. null is returned.
targetType - - a target class instance, must not be
nullsigners - - actual signers of the targetType
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||