Package com.avoka.tm.vo
Class AccountUserDetails
java.lang.Object
com.avoka.tm.vo.AccountUserDetails
- All Implemented Interfaces:
- Serializable,- org.springframework.security.core.userdetails.UserDetails
public class AccountUserDetails
extends Object
implements org.springframework.security.core.userdetails.UserDetails
Provide an AccountUserDetails value object class.
- Since:
- 19.11.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAccountUserDetails(com.avoka.fc.core.security.AccountUserDetails accountUserDetails) Create a AccountUserDetails value object with the given parameters.AccountUserDetails(Map fields) Create a unit testing AccountUserDetails value object with the given fields.
- 
Method SummaryModifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>Returns a collection of Granted Authorities associated with the userReturns the user password attributegetUser()Returns the userReturns the username attributebooleanWill always return truebooleanCheck if the user's account is not in a locked statusbooleanWill always return truebooleanCheck if the user's account is enabledtoString()Returns a string representation of the Account User Details object
- 
Constructor Details- 
AccountUserDetailspublic AccountUserDetails(com.avoka.fc.core.security.AccountUserDetails accountUserDetails) Create a AccountUserDetails value object with the given parameters.- Parameters:
- accountUserDetails- the AccountUserDetails entity parameter (required)
 
- 
AccountUserDetailspublic AccountUserDetails()
- 
AccountUserDetailsCreate a unit testing AccountUserDetails value object with the given fields.- Parameters:
- fields- the account user details entity fields (required)
 
 
- 
- 
Method Details- 
getAuthoritiesReturns a collection of Granted Authorities associated with the user- Specified by:
- getAuthoritiesin interface- org.springframework.security.core.userdetails.UserDetails
- Returns:
- a collection of org.springframework.security.core.GrantedAuthority
 
- 
getPasswordReturns the user password attribute- Specified by:
- getPasswordin interface- org.springframework.security.core.userdetails.UserDetails
- Returns:
- a user's password
 
- 
getUserReturns the user- Returns:
- the user.
- Since:
- 21.5.0
 
- 
getUsernameReturns the username attribute- Specified by:
- getUsernamein interface- org.springframework.security.core.userdetails.UserDetails
- Returns:
- a user's username
 
- 
isAccountNonExpiredpublic boolean isAccountNonExpired()Will always return true- Specified by:
- isAccountNonExpiredin interface- org.springframework.security.core.userdetails.UserDetails
- Returns:
- always returns true
 
- 
isAccountNonLockedpublic boolean isAccountNonLocked()Check if the user's account is not in a locked status- Specified by:
- isAccountNonLockedin interface- org.springframework.security.core.userdetails.UserDetails
- Returns:
- true if the account has not locked
 
- 
isCredentialsNonExpiredpublic boolean isCredentialsNonExpired()Will always return true- Specified by:
- isCredentialsNonExpiredin interface- org.springframework.security.core.userdetails.UserDetails
- Returns:
- always returns true
 
- 
isEnabledpublic boolean isEnabled()Check if the user's account is enabled- Specified by:
- isEnabledin interface- org.springframework.security.core.userdetails.UserDetails
- Returns:
- true if the account is enabled
 
- 
toStringReturns a string representation of the Account User Details object
 
-