Package com.unosquare.carmigo.security
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
ConstructorDescriptionCustomUserDetails
(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
-
Constructor Details
-
CustomUserDetails
public CustomUserDetails(int id, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-