Class CustomUserDetails

java.lang.Object
org.springframework.security.core.userdetails.User
com.unosquare.carmigo.security.CustomUserDetails
All Implemented Interfaces:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

public class CustomUserDetails extends org.springframework.security.core.userdetails.User
Gives specific characteristics which represents the authenticated user.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User

    org.springframework.security.core.userdetails.User.UserBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomUserDetails(int id, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
  • Method Summary

    Methods inherited from class org.springframework.security.core.userdetails.User

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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CustomUserDetails

      public CustomUserDetails(int id, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)