java.security
public
final
class
java.security.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.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
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 |
name
| identifies the permission that could not be resolved |
Public Methods
public
boolean
equals(Object obj)
Compares the argument to the receiver, and returns 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 |
Returns
true
if the object is the same as this object,
false
otherwise.
public
String
getActions()
Returns the actions associated with the receiver. Since
UnresolvedPermission objects have no actions, answer the empty string.
Returns
- the actions associated with the receiver.
public
String
getUnresolvedActions()
public
String
getUnresolvedName()
public
String
getUnresolvedType()
public
int
hashCode()
Returns 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.
public
boolean
implies(Permission permission)
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 |
Returns a new PermissionCollection for holding permissions of this class.
Answer null if any permission collection can be used.
Returns
- a new PermissionCollection or null
See Also
- BasicPermissionCollection
public
String
toString()
Returns a string containing a concise, human-readable description of the
receiver.
Returns
- a printable representation for the receiver.