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
-
name
-
-
PrincipalImpl(String)
- Constructs a group with the specified name.
-
equals(Object)
- Compares this principal to the specified object.
-
getName()
-
Returns the name of this principal.
-
hashCode()
- Returns a hashcode for this principal.
-
toString()
- Returns a string representation of this principal.
name
protected String name
PrincipalImpl
public PrincipalImpl(String name)
- Constructs a group with the specified name.
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
toString
public String toString()
- Returns a string representation of this principal.
- Returns:
- a string representation of this principal.
- Overrides:
- toString in class Object
hashCode
public int hashCode()
- Returns a hashcode for this principal.
- Returns:
- a hashcode for this principal.
- Overrides:
- hashCode in class Object
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