|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.userdetails.ldap.LdapUserDetailsImpl
public class LdapUserDetailsImpl
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.
Nested Class Summary | |
---|---|
static class |
LdapUserDetailsImpl.Essence
Variation of essence pattern. |
Constructor Summary | |
---|---|
protected |
LdapUserDetailsImpl()
|
Method Summary | |
---|---|
Attributes |
getAttributes()
The attributes for the user's entry in the directory (or a subset of them, depending on what was retrieved from the directory). |
GrantedAuthority[] |
getAuthorities()
Returns the authorities granted to the user. |
String |
getDn()
The DN of the entry for this user's account. |
String |
getPassword()
Returns the password used to authenticate the user. |
String |
getUsername()
Returns the username used to authenticate the user. |
boolean |
isAccountNonExpired()
Indicates whether the user's account has expired. |
boolean |
isAccountNonLocked()
Indicates whether the user is locked or unlocked. |
boolean |
isCredentialsNonExpired()
Indicates whether the user's credentials (password) has expired. |
boolean |
isEnabled()
Indicates whether the user is enabled or disabled. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LdapUserDetailsImpl()
Method Detail |
---|
public Attributes getAttributes()
LdapUserDetails
getAttributes
in interface LdapUserDetails
public GrantedAuthority[] getAuthorities()
UserDetails
null
.
getAuthorities
in interface UserDetails
null
)public String getDn()
LdapUserDetails
getDn
in interface LdapUserDetails
public String getPassword()
UserDetails
null
.
getPassword
in interface UserDetails
null
)public String getUsername()
UserDetails
null
.
getUsername
in interface UserDetails
null
)public boolean isAccountNonExpired()
UserDetails
isAccountNonExpired
in interface UserDetails
true
if the user's account is valid (ie non-expired), false
if no longer valid
(ie expired)public boolean isAccountNonLocked()
UserDetails
isAccountNonLocked
in interface UserDetails
true
if the user is not locked, false
otherwisepublic boolean isCredentialsNonExpired()
UserDetails
isCredentialsNonExpired
in interface UserDetails
true
if the user's credentials are valid (ie non-expired), false
if no longer
valid (ie expired)public boolean isEnabled()
UserDetails
isEnabled
in interface UserDetails
true
if the user is enabled, false
otherwisepublic String toString()
toString
in class Object
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |