RoleHierarchyVoter or RoleHierarchyAuthoritiesMapper instead.public class UserDetailsWrapper extends Object implements UserDetails
| Constructor and Description |
|---|
UserDetailsWrapper(UserDetails userDetails,
RoleHierarchy roleHierarchy)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends GrantedAuthority> |
getAuthorities()
Deprecated.
Returns the authorities granted to the user.
|
String |
getPassword()
Deprecated.
Returns the password used to authenticate the user.
|
UserDetails |
getUnwrappedUserDetails()
Deprecated.
|
String |
getUsername()
Deprecated.
Returns the username used to authenticate the user.
|
boolean |
isAccountNonExpired()
Deprecated.
Indicates whether the user's account has expired.
|
boolean |
isAccountNonLocked()
Deprecated.
Indicates whether the user is locked or unlocked.
|
boolean |
isCredentialsNonExpired()
Deprecated.
Indicates whether the user's credentials (password) has expired.
|
boolean |
isEnabled()
Deprecated.
Indicates whether the user is enabled or disabled.
|
public UserDetailsWrapper(UserDetails userDetails, RoleHierarchy roleHierarchy)
public boolean isAccountNonExpired()
UserDetailsisAccountNonExpired in interface UserDetailstrue if the user's account is valid (ie non-expired), false if no longer valid
(ie expired)public boolean isAccountNonLocked()
UserDetailsisAccountNonLocked in interface UserDetailstrue if the user is not locked, false otherwisepublic Collection<? extends GrantedAuthority> getAuthorities()
UserDetailsnull.getAuthorities in interface UserDetailsnull)public boolean isCredentialsNonExpired()
UserDetailsisCredentialsNonExpired in interface UserDetailstrue if the user's credentials are valid (ie non-expired), false if no longer
valid (ie expired)public boolean isEnabled()
UserDetailsisEnabled in interface UserDetailstrue if the user is enabled, false otherwisepublic String getPassword()
UserDetailsgetPassword in interface UserDetailspublic String getUsername()
UserDetailsnull.getUsername in interface UserDetailsnull)public UserDetails getUnwrappedUserDetails()