Class GenericPrincipal<T>

java.lang.Object
io.github.astrapi69.spring.security.GenericPrincipal<T>
All Implemented Interfaces:
Serializable, org.springframework.security.core.userdetails.UserDetails

public abstract class GenericPrincipal<T> extends Object implements org.springframework.security.core.userdetails.UserDetails
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.userdetails.UserDetails

    getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
  • Constructor Details

    • GenericPrincipal

      public GenericPrincipal(@NonNull T user)
  • Method Details

    • getUser

      @NonNull public T getUser()