public final class FilePermission extends Permission implements Serializable
| Constructor and Description |
|---|
FilePermission(String pathExpression,
String actionsString)
Create a new FilePermission.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Check two FilePermissions for semantic equality.
|
String |
getActions()
Get the actions this FilePermission supports.
|
int |
hashCode()
Get the hash code for this Object.
|
boolean |
implies(Permission p)
Check to see if this permission implies another.
|
checkGuard, getName, newPermissionCollection, toStringpublic FilePermission(String pathExpression, String actionsString)
pathExpression - an expression specifying the paths this
permission represents.actionsString - a comma-separated list of the actions this
permission represents. The actions must be "read", "write",
"execute" and/or "delete".public String getActions()
getActions in class Permissionpublic int hashCode()
FilePermission's hash code is calculated as the exclusive or of the target String's hash code and the action String's hash code.
hashCode in class PermissionObject.equals(Object),
System.identityHashCode(Object)public boolean equals(Object o)
equals in class Permissiono - the Object to compare to.Object.hashCode()public boolean implies(Permission p)
implies in class Permissionp - the Permission to compare against.