| java.lang.Object java.security.Permission java.security.UnresolvedPermission
UnresolvedPermission | final public class UnresolvedPermission extends Permission implements Serializable(Code) | | 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.
|
UnresolvedPermission | public UnresolvedPermission(String type, String name, String actions, Certificate[] certs)(Code) | | Constructs a new instance of this class with its type, name, and
certificates set to the arguments by definition, actions are ignored
Parameters: type - class of permission object Parameters: name - identifies the permission that could not be resolved Parameters: actions - Parameters: certs - |
equals | public boolean equals(Object obj)(Code) | | Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison. In this
case, the receiver and the object must have the same class, permission
name, actions, and certificates
Parameters: obj - the object to compare with this object true if the object is the same as this object,false otherwise. See Also: UnresolvedPermission.hashCode |
getActions | public String getActions()(Code) | | Answers the actions associated with the receiver. Since
UnresolvedPermission objects have no actions, answer the empty string.
the actions associated with the receiver. |
getUnresolvedActions | public String getUnresolvedActions()(Code) | | |
hashCode | public int hashCode()(Code) | | Answers an integer hash code for the receiver. Any two objects which
answer true when passed to equals must
answer the same value for this method.
the receiver's hash See Also: UnresolvedPermission.equals |
implies | public boolean implies(Permission permission)(Code) | | Indicates whether the argument permission is implied by the
receiver. UnresolvedPermission objects imply nothing
because nothing is known about them yet.
Before actual implication checking, this method tries to
resolve UnresolvedPermissions (if any) against the passed
instance. Successfully resolved permissions (if any) are
taken into account during further processing.
Parameters: permission - the permission to check always replies false |
resolve | Permission resolve(Class targetType)(Code) | | Tries to resolve this permission into the specified class. It is assumed
that the class has a proper name (as returned by 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.
If an appropriate constructor is not available or the class is
improperly signed, null is returned.
Parameters: targetType - - a target class instance, must not benull Parameters: signers - - actual signers of the targetType resolved permission or null |
toString | public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
receiver.
a printable representation for the receiver. |
|
|