Class User
java.lang.Object
com.gigaspaces.security.directory.User
- All Implemented Interfaces:
UserDetails,Serializable
Models user details retrieved by a
UserManager. Implementors may use this class
directly, subclass it, or write their own UserDetails implementation from scratch.
- Since:
- 7.0.1
- Author:
- Moran Avigdor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the granted authorities granted to the user.Returns the password used to authenticate the user.Returns the username used to authenticate the user.inthashCode()roles()voidsetPassword(String encryptedPassword) Set an encrypted password (new user or one with an updated password).toString()
-
Constructor Details
-
User
-
User
-
User
-
User
-
-
Method Details
-
roles
-
getAuthorities
Description copied from interface:UserDetailsReturns the granted authorities granted to the user. Cannot returnnull.- Specified by:
getAuthoritiesin interfaceUserDetails- Returns:
- the authorities (never
null)
-
getPassword
Description copied from interface:UserDetailsReturns the password used to authenticate the user. Cannot returnnull.- Specified by:
getPasswordin interfaceUserDetails- Returns:
- the password (never
null)
-
setPassword
Set an encrypted password (new user or one with an updated password).- Parameters:
encryptedPassword- the encrypted password.- See Also:
-
getUsername
Description copied from interface:UserDetailsReturns the username used to authenticate the user. Cannot returnnull.- Specified by:
getUsernamein interfaceUserDetails- Returns:
- the username (never
null)
-
hashCode
public int hashCode() -
equals
-
toString
-