java.io
Class FilePermission
java.lang.Object
|
+--java.security.Permission
|
+--java.io.FilePermission
All Implemented Interfaces:
Serializable, Guard, Serializable
FilePermission
public FilePermission(java.lang.String pathExpression, java.lang.String actionsString)
Create a new FilePermission.
Parameters:
equals
public boolean equals(java.lang.Object o)
Check two FilePermissions for semantic equality.
Two FilePermissions are exactly equivalent if they have identical path
expressions and have exactly the same access permissions.
Parameters:
Returns:
- whether the Objects are semantically equivalent.
getActions
public String getActions()
Get the actions this FilePermission supports.
Returns:
- the String representing the actions this FilePermission supports.
hashCode
public int hashCode()
Get the hash code for this Object.
FilePermission's hash code is calculated as the exclusive or of the target
String's hash code and the action String's hash code.
Returns:
- the hash code for this Object.
implies
public boolean implies(java.security.Permission p)
Check to see if this permission implies another.
Permission A implies permission B if these things are all true:
- A and B are both FilePermissions.
- All possible files in B are included in A (possibly more are in A).
- All actions B supports, A also supports.
Parameters:
Returns:
- whether this Permission implies p