public final class FilePermission extends java.security.Permission implements Serializable
| Constructor and Description |
|---|
FilePermission(java.lang.String pathExpression,
java.lang.String actionsString)
Create a new FilePermission.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Check two FilePermissions for semantic equality.
|
java.lang.String |
getActions()
Get the actions this FilePermission supports.
|
int |
hashCode()
Get the hash code for this Object.
|
boolean |
implies(java.security.Permission p)
Check to see if this permission implies another.
|
public FilePermission(java.lang.String pathExpression, java.lang.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 java.lang.String getActions()
getActions in class java.security.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 java.security.PermissionObject.equals(Object),
System.identityHashCode(Object)public boolean equals(java.lang.Object o)
equals in class java.security.Permissiono - the Object to compare to.Object.hashCode()public boolean implies(java.security.Permission p)
implies in class java.security.Permissionp - the Permission to compare against.