public class UserDetailsAdaptor extends Object implements org.springframework.security.userdetails.UserDetails
Constructor and Description |
---|
UserDetailsAdaptor(User user) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.GrantedAuthority[] |
getAuthorities() |
String |
getPassword() |
String |
getUsername() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
public UserDetailsAdaptor(User user)
public org.springframework.security.GrantedAuthority[] getAuthorities()
getAuthorities
in interface org.springframework.security.userdetails.UserDetails
public String getPassword()
getPassword
in interface org.springframework.security.userdetails.UserDetails
public String getUsername()
getUsername
in interface org.springframework.security.userdetails.UserDetails
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.springframework.security.userdetails.UserDetails
public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.springframework.security.userdetails.UserDetails
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.springframework.security.userdetails.UserDetails
public boolean isEnabled()
isEnabled
in interface org.springframework.security.userdetails.UserDetails