类 AuthUser

java.lang.Object
org.springframework.security.core.userdetails.User
cn.bbwres.biscuit.security.oauth2.vo.AuthUser
所有已实现的接口:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

public class AuthUser extends org.springframework.security.core.userdetails.User
认证的登陆用户信息。
作者:
zhanglinfeng
另请参阅:
  • 嵌套类概要

    从类继承的嵌套类/接口 org.springframework.security.core.userdetails.User

    org.springframework.security.core.userdetails.User.UserBuilder
  • 构造器概要

    构造器
    构造器
    说明
    AuthUser(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
    Construct the User with the details required by DaoAuthenticationProvider.
    AuthUser(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
    Calls the more complex constructor with all boolean arguments set to.
    AuthUser(org.springframework.security.core.userdetails.UserDetails user, String zhName, String userId, String tenantId)
     
  • 方法概要

    从类继承的方法 org.springframework.security.core.userdetails.User

    builder, equals, eraseCredentials, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername

    从类继承的方法 java.lang.Object

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

    • AuthUser

      public AuthUser(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      Calls the more complex constructor with all boolean arguments set to.
      参数:
      username - username
      authorities - authorities
    • AuthUser

      public AuthUser(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      Construct the User with the details required by DaoAuthenticationProvider.
      参数:
      username - the username presented to the DaoAuthenticationProvider DaoAuthenticationProvider
      enabled - set to true if the user is enabled
      accountNonExpired - set to true if the account has not expired
      credentialsNonExpired - set to true if the credentials have not expired
      accountNonLocked - set to true if the account is not locked
      authorities - the authorities that should be granted to the caller if they presented the correct username and password and the user is enabled. Not null.
      抛出:
      IllegalArgumentException - if a null value was passed either as a parameter or as an element in the GrantedAuthority collection
    • AuthUser

      public AuthUser(org.springframework.security.core.userdetails.UserDetails user, String zhName, String userId, String tenantId)