Package com.avoka.tm.security
Class AccountUserDetailsBuilder
java.lang.Object
com.avoka.tm.security.AccountUserDetailsBuilder
Provide a Builder for the Account User Details Vo.
Examples
import com.avoka.tm.security.*;
import com.avoka.tm.vo.*;
import java.util.HashSet;
import java.util.Set;
Set<String> authorities = new HashSet<>();
authorities.add(GROUP_NAME);
AccountUserDetailsVo accountUserDetailsVo = new AccountUserDetailsBuilder()
.setUser(user)
.setGrantedAuthorities(authorities)
.build();
- Since:
- 19.11.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create an AccountUserDetails VOsetGrantedAuthorities
(Set<String> authorities) Set the list of Granted Authorities.Set the User.
-
Constructor Details
-
AccountUserDetailsBuilder
public AccountUserDetailsBuilder()
-
-
Method Details
-
setUser
Set the User.- Parameters:
user
- the user (required)- Returns:
- this builder
-
setGrantedAuthorities
Set the list of Granted Authorities.- Parameters:
authorities
- set of granted authorities- Returns:
- this builder
-
build
Create an AccountUserDetails VO- Returns:
- An AccountUserDetailsVo
-