类 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
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 AuthUser(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)Construct theUserwith the details required byDaoAuthenticationProvider.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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BooleangetNoUserInfo()StringgetTenantId()StringgetUserId()StringgetZhName()voidsetNoUserInfo(Boolean noUserInfo)voidsetUserId(String userId)voidsetZhName(String zhName)
-
-
-
构造器详细资料
-
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-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 theUserwith the details required byDaoAuthenticationProvider.- 参数:
username- the username presented to theDaoAuthenticationProviderDaoAuthenticationProviderenabled- set totrueif the user is enabledaccountNonExpired- set totrueif the account has not expiredcredentialsNonExpired- set totrueif the credentials have not expiredaccountNonLocked- set totrueif the account is not lockedauthorities- 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 anullvalue was passed either as a parameter or as an element in theGrantedAuthoritycollection
-
-
方法详细资料
-
getZhName
public String getZhName()
-
setZhName
public void setZhName(String zhName)
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
getTenantId
public String getTenantId()
-
getNoUserInfo
public Boolean getNoUserInfo()
-
setNoUserInfo
public void setNoUserInfo(Boolean noUserInfo)
-
-