public class User extends Object implements UserDetails
UserManager.  Implementors may use this class
 directly, subclass it, or write their own UserDetails implementation from scratch. 
| Constructor and Description | 
|---|
| User(String username,
    String password) | 
| User(String username,
    String password,
    Authority... authorities) | 
| User(String username,
    String password,
    PopulatedRoleAuthority... authorities) | 
| User(String username,
    String password,
    String... authorities) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| Authority[] | getAuthorities()Returns the granted authorities granted to the user. | 
| String | getPassword()Returns the password used to authenticate the user. | 
| String | getUsername()Returns the username used to authenticate the user. | 
| int | hashCode() | 
| Set<String> | roles() | 
| void | setPassword(String encryptedPassword)Set an encrypted password (new user or one with an updated password). | 
| String | toString() | 
public User(String username, String password, PopulatedRoleAuthority... authorities)
public Authority[] getAuthorities()
UserDetailsnull.getAuthorities in interface UserDetailsnull)public String getPassword()
UserDetailsnull.getPassword in interface UserDetailsnull)public void setPassword(String encryptedPassword)
encryptedPassword - the encrypted password.UserManager.createUser(UserDetails), 
UserManager.updateUser(UserDetails)public String getUsername()
UserDetailsnull.getUsername in interface UserDetailsnull)Copyright © GigaSpaces.