public interface Principal
Principals are objects which have identities. These can be
individuals, groups, corporations, unique program executions, etc.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares the specified object with this
Principal for equality
and returns true if the specified object is equal, false
otherwise. |
String |
getName()
Returns the name of this
Principal. |
int |
hashCode()
Returns the hash code value for this
Principal. |
String |
toString()
Returns a string containing a concise, human-readable description of
this
Principal. |
boolean equals(Object obj)
Principal for equality
and returns true if the specified object is equal, false
otherwise.equals in class Objectobj - object to be compared for equality with this Principal.true if the specified object is equal to this Principal, otherwise false.Object.hashCode()String getName()
Principal.Principal.int hashCode()
Principal. Returns the same
hash code for Principals that are equal to each other as
required by the general contract of Object.hashCode().hashCode in class ObjectPrincipal.Object.equals(Object),
equals(Object)