public class LdapUserDetailsImpl extends Object implements LdapUserDetails, PasswordPolicyData
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
LdapUserDetailsImpl.Essence
Variation of essence pattern.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LdapUserDetailsImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
String |
getDn()
The DN of the entry for this user's account.
|
int |
getGraceLoginsRemaining() |
String |
getPassword() |
int |
getTimeBeforeExpiration() |
String |
getUsername() |
int |
hashCode() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
String |
toString() |
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getDn()
LdapUserDetailsgetDn in interface LdapUserDetailspublic String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailspublic int getTimeBeforeExpiration()
getTimeBeforeExpiration in interface PasswordPolicyDatapublic int getGraceLoginsRemaining()
getGraceLoginsRemaining in interface PasswordPolicyData