Class UserToUserDetails

java.lang.Object
org.xbricks.common.generic.converters.UserToUserDetails
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<users,org.springframework.security.core.userdetails.UserDetails>

@Component public class UserToUserDetails extends Object implements org.springframework.core.convert.converter.Converter<users,org.springframework.security.core.userdetails.UserDetails>
  • Constructor Details

    • UserToUserDetails

      public UserToUserDetails()
  • Method Details

    • setAuthoritiesRepo

      @Autowired public void setAuthoritiesRepo(AuthoritiesRepository authoritiesRepo)
      Parameters:
      authoritiesRepo - Autowiring the Component
    • convert

      public org.springframework.security.core.userdetails.UserDetails convert(@Nullable users users)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<users,org.springframework.security.core.userdetails.UserDetails>