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.


Constructor Index

 o PermissionImpl(String)
Construct a permission object using a string.

Method Index

 o equals(Object)
This function returns true if the object passed matches the permission represented in this interface.
 o toString()
Prints a stringified version of the permission.

Constructors

 o PermissionImpl
 public PermissionImpl(String permission)
Construct a permission object using a string.

Parameters:
permission - the stringified version of the permission.

Methods

 o 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
 o 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