java.lang.Object | |
↳ | org.springframework.security.access.hierarchicalroles.UserDetailsWrapper |
This class is deprecated.
use a RoleHierarchyVoter
or RoleHierarchyAuthoritiesMapper
instead.
This class wraps Spring Security's UserDetails in a way that its getAuthorities() method is delegated to RoleHierarchy.getReachableGrantedAuthorities. All other methods are delegated to the UserDetails implementation.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the authorities granted to the user.
| |||||||||||
Returns the password used to authenticate the user.
| |||||||||||
Returns the username used to authenticate the user.
| |||||||||||
Indicates whether the user's account has expired.
| |||||||||||
Indicates whether the user is locked or unlocked.
| |||||||||||
Indicates whether the user's credentials (password) has expired.
| |||||||||||
Indicates whether the user is enabled or disabled.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the authorities granted to the user. Cannot return null
.
null
)
Returns the password used to authenticate the user. Cannot return null
.
null
)
Returns the username used to authenticate the user. Cannot return null
.
null
)
Indicates whether the user's account has expired. An expired account cannot be authenticated.
true
if the user's account is valid (ie non-expired), false
if no longer valid
(ie expired)
Indicates whether the user is locked or unlocked. A locked user cannot be authenticated.
true
if the user is not locked, false
otherwise
Indicates whether the user's credentials (password) has expired. Expired credentials prevent authentication.
true
if the user's credentials are valid (ie non-expired), false
if no longer
valid (ie expired)
Indicates whether the user is enabled or disabled. A disabled user cannot be authenticated.
true
if the user is enabled, false
otherwise