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

Variable Index

 o allowed
Value of this NameAclEntry.
 o name
Name of this NameAclEntry.

Constructor Index

 o NameAclEntry(String, boolean)
Creates a new NameAclEntry.

Method Index

 o equals(NameAclEntry)
Checks if this NameAclEntry equals another one.
 o equals(Object)
Overrides equals() method of Object class.
 o getName()
Returns the name of this NameAclEntry.
 o hashCode()
Returns the hash code of this NameAclEntry.
 o isAllowed()
Returns the value of this NameAclEntry.
 o toString()

Variables

 o name
 protected String name
Name of this NameAclEntry.

 o allowed
 protected boolean allowed
Value of this NameAclEntry.

Value is boolean, ie either true or false. true means "is allowed".

Constructors

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

Methods

 o getName
 public String getName()
Returns the name of this NameAclEntry.

 o isAllowed
 public boolean isAllowed()
Returns the value of this NameAclEntry.

 o equals
 public boolean equals(Object object_)
Overrides equals() method of Object class.

Linked with hashCode method.

Overrides:
equals in class Object
See Also:
equals
 o equals
 public boolean equals(NameAclEntry other_)
Checks if this NameAclEntry equals another one. Compares only entries' names!

 o 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
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index