| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gigaspaces.security.directory.User
public class User
Models user details retrieved by a UserManager.
 
 Implementors may use this class directly, subclass it, or write their own UserDetails
 implementation from scratch.
 
| Constructor Summary | |
|---|---|
User(String username,
     String password)
 | 
|
User(String username,
     String password,
     Authority... authorities)
 | 
|
User(String username,
     String password,
     String... authorities)
 | 
|
| Method Summary | |
|---|---|
 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()
 | 
 void | 
setPassword(String encryptedPassword)
Set an encrypted password (new user or one with an updated password).  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public User(String username,
            String password)
public User(String username,
            String password,
            Authority... authorities)
public User(String username,
            String password,
            String... authorities)
| Method Detail | 
|---|
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)public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||