类 SecureUserServiceImpl

  • 所有已实现的接口:
    org.springframework.security.core.userdetails.UserDetailsService

    @Component
    public class SecureUserServiceImpl
    extends java.lang.Object
    implements org.springframework.security.core.userdetails.UserDetailsService
    Security 用户服务实现
    作者:
    youta
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.util.Set<? extends org.springframework.security.core.GrantedAuthority> loadAuthorities​(java.lang.String userId)  
      java.util.List<SysRole> loadRoles​(java.lang.String userId)  
      SecureUser loadUserByUsername​(java.lang.String username)
      加载用户信息
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SecureUserServiceImpl

        public SecureUserServiceImpl()
    • 方法详细资料

      • loadUserByUsername

        public SecureUser loadUserByUsername​(java.lang.String username)
                                      throws org.springframework.security.core.userdetails.UsernameNotFoundException
        加载用户信息
        指定者:
        loadUserByUsername 在接口中 org.springframework.security.core.userdetails.UserDetailsService
        抛出:
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • loadAuthorities

        public java.util.Set<? extends org.springframework.security.core.GrantedAuthority> loadAuthorities​(java.lang.String userId)
      • loadRoles

        public java.util.List<SysRole> loadRoles​(java.lang.String userId)