public class ImagePermission extends Permission
Image. Permission is checked when calling one of the following methods:
ResourceImage.loadImage(InputStream, int, ResourceImage.OutputFormat),
|Constructor and Description|
Creates an image permission with
|Modifier and Type||Method and Description|
Checks two Permission objects for equality.
Returns the actions as a String.
Returns the hash code value for this Permission object.
Checks if the specified permission's actions are "implied by" this object's actions.
Do not use the
equals method for making access control decisions; use the
public String getActions()
perm1 = new FilePermission(p1, "read,write"); perm2 = new FilePermission(p2, "write,read");both return "read,write" when the
getActionsmethod is invoked.
public int hashCode()
hashCode behavior for Permission Objects is the following:
hashCodemethod must consistently return the same integer. This integer need not remain consistent from one execution of an application to another execution of the same application.
equalsmethod, then calling the
hashCodemethod on each of the two Permission objects must produce the same integer result.
public boolean implies(Permission permission)
This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.