java.lang.Object
org.springframework.security.core.userdetails.User
xyz.raylab.authorizationserver.oauth2.service.entity.UserPrincipal
所有已实现的接口:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

public class UserPrincipal extends org.springframework.security.core.userdetails.User
另请参阅:
  • 嵌套类概要

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

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

    构造器
    构造器
    说明
    UserPrincipal(String userId, String username, String password, boolean enable, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
    UserPrincipal(String userId, String username, String password, boolean enable, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
    UserPrincipal(String userId, String username, 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, toString, withDefaultPasswordEncoder, withUserDetails, withUsername

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

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

    • UserPrincipal

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

      public UserPrincipal(String userId, String username, String password, boolean enable, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
    • UserPrincipal

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

    • getUserId

      public String getUserId()