All Packages Class Hierarchy This Package Previous Next Index
Class sun.security.acl.PermissionImpl
java.lang.Object
|
+----sun.security.acl.PermissionImpl
- public class PermissionImpl
- extends Object
- implements Permission
The PermissionImpl class implements the permission
interface for permissions that are strings.
-
PermissionImpl(String)
- Construct a permission object using a string.
-
equals(Object)
- This function returns true if the object passed matches the permission
represented in this interface.
-
toString()
- Prints a stringified version of the permission.
PermissionImpl
public PermissionImpl(String permission)
- Construct a permission object using a string.
- Parameters:
- permission - the stringified version of the permission.
equals
public boolean equals(Object another)
- This function returns true if the object passed matches the permission
represented in this interface.
- Parameters:
- another - The Permission object to compare with.
- Returns:
- true if the Permission objects are equal, false otherwise
- Overrides:
- equals in class Object
toString
public String toString()
- Prints a stringified version of the permission.
- Returns:
- the string representation of the Permission.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index