public class PasswordUser
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PasswordUser(java.security.Principal principal,
char[] password,
boolean isDisabled,
boolean isAnonymous,
java.lang.String[] roles) |
PasswordUser(java.security.Principal principal,
char[] password,
java.lang.String[] roles) |
PasswordUser(java.lang.String user,
char[] password) |
PasswordUser(java.lang.String user,
char[] password,
java.lang.String[] roles) |
PasswordUser(java.lang.String user,
java.lang.String password) |
PasswordUser(java.lang.String user,
java.lang.String password,
java.lang.String[] roles) |
Modifier and Type | Method and Description |
---|---|
void |
clearPassword()
Clears the password
|
PasswordUser |
copy()
Creates a copy
|
char[] |
getPassword()
Returns the password
|
java.security.Principal |
getPrincipal()
Returns the logged-in user principal
|
java.lang.String[] |
getRoles()
Returns the user's roles
|
boolean |
isAnonymous()
Returns true if the user is anonymous, i.e.
|
boolean |
isDisabled()
Returns true if the user is disabled
|
boolean |
isUserInRole(java.lang.String testRole)
Returns true if the user is in one of the roles
|
java.lang.String |
toString() |
public PasswordUser(java.security.Principal principal, char[] password, boolean isDisabled, boolean isAnonymous, java.lang.String[] roles)
public PasswordUser(java.security.Principal principal, char[] password, java.lang.String[] roles)
public PasswordUser(java.lang.String user, char[] password, java.lang.String[] roles)
public PasswordUser(java.lang.String user, char[] password)
public PasswordUser(java.lang.String user, java.lang.String password)
public PasswordUser(java.lang.String user, java.lang.String password, java.lang.String[] roles)
public java.security.Principal getPrincipal()
public boolean isDisabled()
public boolean isAnonymous()
public char[] getPassword()
public void clearPassword()
public boolean isUserInRole(java.lang.String testRole)
public java.lang.String[] getRoles()
public PasswordUser copy()
public java.lang.String toString()
toString
in class java.lang.Object