类 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
另请参阅:
  • 构造器详细资料

    • Wic4jUserDetails

      public Wic4jUserDetails()
  • 方法详细资料

    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Returns the authorities granted to the user. Cannot return null.
      指定者:
      getAuthorities 在接口中 org.springframework.security.core.userdetails.UserDetails
      返回:
      the authorities, sorted by natural key (never null)
    • getPassword

      public String getPassword()
      Returns the password used to authenticate the user.
      指定者:
      getPassword 在接口中 org.springframework.security.core.userdetails.UserDetails
      返回:
      the password
    • getUsername

      public String getUsername()
      Returns the username used to authenticate the user. Cannot return null.
      指定者:
      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
      返回:
      true if the user's account is valid (ie non-expired), false if 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
      返回:
      true if the user is not locked, false otherwise
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Indicates whether the user's credentials (password) has expired. Expired credentials prevent authentication.
      指定者:
      isCredentialsNonExpired 在接口中 org.springframework.security.core.userdetails.UserDetails
      返回:
      true if the user's credentials are valid (ie non-expired), false if 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
      返回:
      true if the user is enabled, false otherwise