All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jnfs.security.acl.PrincipalImpl

java.lang.Object
   |
   +----jnfs.security.acl.PrincipalImpl

public class PrincipalImpl
extends Object
implements Principal, Serializable
An implementation of a Principal.

Version:
$Id: PrincipalImpl.java,v 1.7 1997/05/20 19:17:02 mjr Exp $
Author:
Michael John Radwin
See Also:
Principal

Variable Index

 o name

Constructor Index

 o PrincipalImpl(String)
Constructs a group with the specified name.

Method Index

 o equals(Object)
Compares this principal to the specified object.
 o getName()
Returns the name of this principal.
 o hashCode()
Returns a hashcode for this principal.
 o toString()
Returns a string representation of this principal.

Variables

 o name
 protected String name

Constructors

 o PrincipalImpl
 public PrincipalImpl(String name)
Constructs a group with the specified name.

Methods

 o equals
 public boolean equals(Object other)
Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.

Parameters:
other - the principal to compare with.
Returns:
true if the principal passed in is the same as that encapsulated by this principal, false otherwise.
Overrides:
equals in class Object
 o toString
 public String toString()
Returns a string representation of this principal.

Returns:
a string representation of this principal.
Overrides:
toString in class Object
 o hashCode
 public int hashCode()
Returns a hashcode for this principal.

Returns:
a hashcode for this principal.
Overrides:
hashCode in class Object
 o getName
 public String getName()
Returns the name of this principal.

Returns:
the name of this principal.

All Packages  Class Hierarchy  This Package  Previous  Next  Index