Package netscape.security.acl
Class PermissionImpl
- java.lang.Object
-
- netscape.security.acl.PermissionImpl
-
- All Implemented Interfaces:
java.security.acl.Permission
- Direct Known Subclasses:
AllPermissionsImpl
public class PermissionImpl extends java.lang.Object implements java.security.acl.Permission
The PermissionImpl class implements the permission interface for permissions that are strings.- Author:
- Satish Dharmaraj
-
-
Constructor Summary
Constructors Constructor Description PermissionImpl(java.lang.String permission)
Construct a permission object using a string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object another)
This function returns true if the object passed matches the permission represented in this interface.int
hashCode()
java.lang.String
toString()
Prints a stringified version of the permission.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object another)
This function returns true if the object passed matches the permission represented in this interface.- Specified by:
equals
in interfacejava.security.acl.Permission
- Overrides:
equals
in classjava.lang.Object
- Parameters:
another
- The Permission object to compare with.- Returns:
- true if the Permission objects are equal, false otherwise
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Prints a stringified version of the permission.- Specified by:
toString
in interfacejava.security.acl.Permission
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string representation of the Permission.
-
-