java.security
public
interface
java.security.Principal
Principals are objects which have identities. These can be individuals,
groups, corporations, unique program executions, etc.
Known Indirect Subclasses
Summary
Details
Public Methods
public
boolean
equals(Object obj)
Compares the argument to the receiver, and answers true if they represent
the
same object using a class specific comparison. The
implementation in Object answers true only if the argument is the exact
same object as the receiver (==).
Parameters
| obj
| Object the object to compare with this object. |
public
int
hashCode()
Answers an integer hash code for the receiver. Any two objects which
answer true when passed to .equals must
answer the same value for this method.
public
String
toString()
Answers a string containing a concise, human-readable description of the
receiver.