public final class UserPrincipal extends Object implements Principal, SerializableA user principal identified by a username or account name.
After successful authentication, a user
Principalcan be associated with a particular
Subjectto augment that
Subjectwith an additional identity. Authorization decisions can then be based upon the
Principals that are associated with a
This class is immutable.
- See Also:
- Serialized Form
public boolean equals(Object object)Compares this principal to the specified object.
public int hashCode()Returns a hash code for this principal.
public String getName()Returns the name of this principal.