Class AccountUserDetailsBuilder


  • public class AccountUserDetailsBuilder
    extends Object

    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 authorities = new HashSet<>();
     authorities.add(GROUP_NAME);
    
     AccountUserDetailsVo accountUserDetailsVo = new AccountUserDetailsBuilder()
                                                     .setUser(user)
                                                     .setGrantedAuthorities(authorities)
                                                     .build(); 
    Since:
    19.11.0
    • Constructor Detail

      • AccountUserDetailsBuilder

        public AccountUserDetailsBuilder()
    • Method Detail

      • setGrantedAuthorities

        public AccountUserDetailsBuilder setGrantedAuthorities​(Set<String> authorities)
        Set the list of Granted Authorities.
        Parameters:
        authorities - set of granted authorities
        Returns:
        this builder
      • build

        public AccountUserDetails build()
        Create an AccountUserDetails VO
        Returns:
        An AccountUserDetailsVo