public final class UserPrincipal extends Object implements Principal, Serializable
After successful authentication, a user
can be associated with a particular
to augment that
Subject with 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.
public String toString()Returns a string representation of this principal.