|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.Permission
java.io.FilePermission
public final class FilePermission
| Constructor Summary | |
|---|---|
FilePermission(String pathExpression,
String actionsString)
Create a new FilePermission. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName, newPermissionCollection, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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".| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||