All Packages Class Hierarchy This Package Previous Next Index
Class calypso.security.NameAclEntry
java.lang.Object
|
+----calypso.security.NameAclEntry
- public class NameAclEntry
- extends Object
- implements Cloneable, Serializable
Class for name-based access control list (ACL) entries.
Note that ACL entries are both Cloneable and
Serializable.
- Version:
- $Revision: 1.1 $
- Author:
- Petteri Koponen
- See Also:
- NameAcl
-
allowed
- Value of this NameAclEntry.
-
name
- Name of this NameAclEntry.
-
NameAclEntry(String, boolean)
- Creates a new NameAclEntry.
-
equals(NameAclEntry)
- Checks if this NameAclEntry equals another one.
-
equals(Object)
- Overrides equals() method of Object class.
-
getName()
- Returns the name of this NameAclEntry.
-
hashCode()
- Returns the hash code of this NameAclEntry.
-
isAllowed()
- Returns the value of this NameAclEntry.
-
toString()
-
name
protected String name
- Name of this NameAclEntry.
allowed
protected boolean allowed
- Value of this NameAclEntry.
Value is boolean, ie either true or
false. true means "is allowed".
NameAclEntry
public NameAclEntry(String name_,
boolean allowed_)
- Creates a new NameAclEntry.
Asserts that name argument is non-null.
- Parameters:
- name_ - A non-null String.
- allowed - Is access allowed?
getName
public String getName()
- Returns the name of this NameAclEntry.
isAllowed
public boolean isAllowed()
- Returns the value of this NameAclEntry.
equals
public boolean equals(Object object_)
- Overrides equals() method of Object class.
Linked with hashCode method.
- Overrides:
- equals in class Object
- See Also:
- equals
equals
public boolean equals(NameAclEntry other_)
- Checks if this NameAclEntry equals another one.
Compares only entries' names!
hashCode
public int hashCode()
- Returns the hash code of this NameAclEntry.
Returns name's, which is a String, hash code so that
this method is compatitible with equals() method.
- Overrides:
- hashCode in class Object
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index