Abstract representation of a user in a
UserDatabase . Each user
is optionally associated with a set of
Group s through which he or
she inherits additional security roles, and is optionally assigned a set
of specific
Role s.
getPassword() Return the logon password of this user, optionally prefixed with the
identifier of an encoding scheme surrounded by curly braces, such as
{md5}xxxxx.
setPassword(String password) Set the logon password of this user, optionally prefixed with the
identifier of an encoding scheme surrounded by curly braces, such as
{md5}xxxxx.
public void
setUsername(String username) Set the logon username of this user, which must be unique within
the scope of a
UserDatabase .
Is this user specifically assigned the specified
Role ? This
method does NOT check for roles inherited based on
Group membership.
Parameters: role - The role to check
Set the logon password of this user, optionally prefixed with the
identifier of an encoding scheme surrounded by curly braces, such as
{md5}xxxxx.
Parameters: password - The new logon password