类 Wic4jUserDetails
java.lang.Object
cn.wi4j.security.core.Wic4jUserDetails
- 所有已实现的接口:
Serializable,org.springframework.security.core.userdetails.UserDetails
public class Wic4jUserDetails
extends Object
implements org.springframework.security.core.userdetails.UserDetails
认证信息
- 从以下版本开始:
- 2023/7/10 11:50
- 版本:
- 2023.0.0.0
- 作者:
- Max
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Collection<? extends org.springframework.security.core.GrantedAuthority>Returns the authorities granted to the user.Returns the password used to authenticate the user.Returns the username used to authenticate the user.booleanIndicates whether the user's account has expired.booleanIndicates whether the user is locked or unlocked.booleanIndicates whether the user's credentials (password) has expired.booleanIndicates whether the user is enabled or disabled.
-
构造器详细资料
-
Wic4jUserDetails
public Wic4jUserDetails()
-
-
方法详细资料
-
getAuthorities
Returns the authorities granted to the user. Cannot returnnull.- 指定者:
getAuthorities在接口中org.springframework.security.core.userdetails.UserDetails- 返回:
- the authorities, sorted by natural key (never
null)
-
getPassword
Returns the password used to authenticate the user.- 指定者:
getPassword在接口中org.springframework.security.core.userdetails.UserDetails- 返回:
- the password
-
getUsername
Returns the username used to authenticate the user. Cannot returnnull.- 指定者:
getUsername在接口中org.springframework.security.core.userdetails.UserDetails- 返回:
- the username (never
null)
-
isAccountNonExpired
public boolean isAccountNonExpired()Indicates whether the user's account has expired. An expired account cannot be authenticated.- 指定者:
isAccountNonExpired在接口中org.springframework.security.core.userdetails.UserDetails- 返回:
trueif the user's account is valid (ie non-expired),falseif no longer valid (ie expired)
-
isAccountNonLocked
public boolean isAccountNonLocked()Indicates whether the user is locked or unlocked. A locked user cannot be authenticated.- 指定者:
isAccountNonLocked在接口中org.springframework.security.core.userdetails.UserDetails- 返回:
trueif the user is not locked,falseotherwise
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()Indicates whether the user's credentials (password) has expired. Expired credentials prevent authentication.- 指定者:
isCredentialsNonExpired在接口中org.springframework.security.core.userdetails.UserDetails- 返回:
trueif the user's credentials are valid (ie non-expired),falseif no longer valid (ie expired)
-
isEnabled
public boolean isEnabled()Indicates whether the user is enabled or disabled. A disabled user cannot be authenticated.- 指定者:
isEnabled在接口中org.springframework.security.core.userdetails.UserDetails- 返回:
trueif the user is enabled,falseotherwise
-