Class PermissionImpl
- java.lang.Object
-
- org.mozilla.jss.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.PermissionThe PermissionImpl class implements the permission interface for permissions that are strings.
-
-
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 booleanequals(java.lang.Object another)This function returns true if the object passed matches the permission represented in this interface.inthashCode()java.lang.StringtoString()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:
equalsin interfacejava.security.acl.Permission- Overrides:
equalsin 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:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Prints a stringified version of the permission.- Specified by:
toStringin interfacejava.security.acl.Permission- Overrides:
toStringin classjava.lang.Object- Returns:
- the string representation of the Permission.
-
-