类 UserInfo

java.lang.Object
org.springframework.security.core.userdetails.User
io.github.lishangbu.orange.oauth2.common.userdetails.UserInfo
所有已实现的接口:
Serializable, org.springframework.security.core.AuthenticatedPrincipal, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails, org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal

public class UserInfo extends org.springframework.security.core.userdetails.User implements org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
用户信息
从以下版本开始:
2025/8/9
作者:
lishangbu
另请参阅:
  • 嵌套类概要

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

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

    构造器
    构造器
    说明
    UserInfo(String username, @Nullable String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
    UserInfo(String username, @Nullable String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
  • 方法概要

    修饰符和类型
    方法
    说明
     
     
     

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

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

    从类继承的方法 Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal

    getAttribute, getAuthorities
  • 构造器详细资料

    • UserInfo

      public UserInfo(String username, @Nullable String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
    • UserInfo

      public UserInfo(String username, @Nullable String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
  • 方法详细资料

    • getAttributes

      public Map<String,Object> getAttributes()
      指定者:
      getAttributes 在接口中 org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
    • getName

      @NullMarked public String getName()
      指定者:
      getName 在接口中 org.springframework.security.core.AuthenticatedPrincipal
    • toString

      @NullMarked public String toString()
      覆盖:
      toString 在类中 org.springframework.security.core.userdetails.User