public class PasswordUser
extends java.lang.Object
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) |
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
|
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 java.security.Principal getPrincipal()
public boolean isDisabled()
public boolean isAnonymous()
public char[] getPassword()
public void clearPassword()
public java.lang.String[] getRoles()
public PasswordUser copy()
public java.lang.String toString()
toString
in class java.lang.Object