public interface Principal extends Serializable
Principal
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object another)
Compares this principal to the specified object.
|
String |
getName()
Returns the name of this principal.
|
int |
hashCode()
Returns a hashcode for this principal.
|
boolean |
implies(Subject subject)
Even though a subject does not explicitly hold a principal, it may still be implied by the
subject.
|
String |
toString()
Returns a string representation of this principal.
|
boolean equals(Object another)
String toString()
int hashCode()
String getName()
boolean implies(Subject subject)
subject
- a subject or null if no user has logged in yetCopyright © 2015. All rights reserved.