java.lang.Object | |
↳ | org.springframework.security.ldap.userdetails.LdapUserDetailsImpl |
Known Direct Subclasses |
Known Indirect Subclasses |
A UserDetails implementation which is used internally by the Ldap services. It also contains the user's distinguished name and a set of attributes that have been retrieved from the Ldap server.
An instance may be created as the result of a search, or when user information is retrieved during authentication.
An instance of this class will be used by the LdapAuthenticationProvider to construct the final user details object that it returns.
The equals
and hashcode
methods are implemented using the Dn
property and do not consider
additional state, so it is not possible two store two instances with the same DN in the same set, or use them as
keys in a map.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LdapUserDetailsImpl.Essence | Variation of essence pattern. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the authorities granted to the user.
| |||||||||||
The DN of the entry for this user's account.
| |||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.security.core.userdetails.UserDetails
| |||||||||||
From interface
org.springframework.security.ldap.ppolicy.PasswordPolicyData
| |||||||||||
From interface
org.springframework.security.ldap.userdetails.LdapUserDetails
|
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