ajanta.security.acl
Class PermissionImpl
java.lang.Object
|
+--ajanta.security.acl.PermissionImpl
- All Implemented Interfaces:
- java.security.acl.Permission, java.io.Serializable
- public class PermissionImpl
- extends java.lang.Object
- implements java.security.acl.Permission, java.io.Serializable
PermissionImpl implements java.acl.Permission interface.
This interface represents a permission, such as that used
to grant a particular type of access to a resource.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object another)
Returns true if the object passed matches the permission represented in
this interface. |
java.lang.String |
toString()
Prints a string representation of this permission. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PermissionImpl
public PermissionImpl(java.lang.String p)
toString
public java.lang.String toString()
- Prints a string representation of this permission.
permission is case insensitive
- Specified by:
toString
in interface java.security.acl.Permission
- Overrides:
toString
in class java.lang.Object
- Returns:
- the string representation of the permission in Upper Case.
equals
public boolean equals(java.lang.Object another)
- Returns true if the object passed matches the permission represented in
this interface.
- Specified by:
equals
in interface java.security.acl.Permission
- Overrides:
equals
in class java.lang.Object
- Parameters:
another
- - the Permission object to compare with.
- Returns:
- true if the Permission objects are equal, false otherwise