接口 UserDetailsPlus

所有超级接口:
Serializable, org.springframework.security.core.userdetails.UserDetails
所有已知实现类:
UserDetailsPlusImpl

public interface UserDetailsPlus extends org.springframework.security.core.userdetails.UserDetails
增强型 UserDetails

UserDetails 增加若干方法使之更方便

从以下版本开始:
1.0.0
作者:
应卓
另请参阅:
  • 方法详细资料

    • builder

      static UserDetailsPlusBuilder builder()
      获取创建器
      返回:
      创建器实例
    • getId

      @Nullable <T> T getId()
      获取ID
      类型参数:
      T - ID类型
      返回:
      ID或null
    • getRequiredId

      default <T> T getRequiredId()
      获取ID
      类型参数:
      T - ID类型
      返回:
      ID
    • getAvatar

      @Nullable <T> T getAvatar()
      头像
      类型参数:
      T - 头像的类型
      返回:
      头像或null
    • getRequiredAvatar

      default <T> T getRequiredAvatar()
      头像
      类型参数:
      T - 头像的类型
      返回:
      头像
    • getEmail

      @Nullable String getEmail()
      Email
      返回:
      电子邮件地址或null
    • getRequiredEmail

      default String getRequiredEmail()
      Email
      返回:
      电子邮件地址
    • getPhoneNumber

      @Nullable String getPhoneNumber()
      电话号码
      返回:
      电话号码或null
    • getRequiredPhoneNumber

      default String getRequiredPhoneNumber()
      电话号码
      返回:
      电话号码
    • getDateOfBirth

      @Nullable LocalDate getDateOfBirth()
      出生日期
      返回:
      出生日期或null
    • getRequiredDateOfBirth

      default LocalDate getRequiredDateOfBirth()
      出生日期
      返回:
      出生日期
    • getBiography

      @Nullable String getBiography()
      BIO
      返回:
      bio或null
    • getRequiredBiography

      default String getRequiredBiography()
      BIO
      返回:
      bio
    • getNationality

      String getNationality()
      国际
      返回:
      国际或null
    • getRequiredNationality

      default String getRequiredNationality()
      国籍
      返回:
      国籍
    • getLocation

      @Nullable String getLocation()
      位置
      返回:
      位置或null
    • getRequiredLocation

      default String getRequiredLocation()
      位置
      返回:
      位置
    • getUrl

      @Nullable String getUrl()
      URL
      返回:
      URL或null
    • getRequiredUrl

      default String getRequiredUrl()
      URL
      返回:
      URL
    • getAttributes

      spring.turbo.util.collection.Attributes getAttributes()
      其他信息
      返回:
      其他信息
    • getNativeUser

      @Nullable <T> T getNativeUser()
      用户对象
      类型参数:
      T - 用户对象类型
      返回:
      用户对象或null
    • getRequiredNativeUser

      default <T> T getRequiredNativeUser()
      用户对象
      类型参数:
      T - 用户对象类型
      返回:
      用户对象