ants.core.security
Class Principal
java.lang.Object
|
+--ants.core.security.Principal
- public class Principal
- extends java.lang.Object
- implements java.io.Serializable
Represents a resource principal: something that has access to
resources (i.e., administrator, John Smith, etc.).
A Principal must be read-only. Applications must not be allowed to
modify fields that are used by the equals or implies method.
The implies method is not currently used by the policy classes.
- Author:
- Andrew Whitaker
- See Also:
- Serialized Form
Constructor Summary |
Principal(java.lang.String name)
|
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Principal
public Principal(java.lang.String name)
getName
public java.lang.String getName()
equals
public boolean equals(java.lang.Object foo)
- Case-insensitive equality test.
- Overrides:
- equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.lang.Object
implies
public boolean implies(Principal p)
- This is currently unused.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/