Class LdapUserDetails
java.lang.Object
com.codename1.backend.security.ldap.LdapUserDetails
- All Implemented Interfaces:
UserDetails
The principal of a directory sign-in: the user name, the entry's DN, the
entry itself and the roles. Holds no password.
-
Constructor Summary
ConstructorsConstructorDescriptionLdapUserDetails(String username, LdapEntry entry, Collection<? extends GrantedAuthority> authorities) -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends GrantedAuthority> What the user has been granted; never null.getDn()getEntry()The user's directory entry, with the attributes the authenticator read.The password as it is stored: encoded, with the{id}prefix a delegating encoder reads.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UserDetails
isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Constructor Details
-
LdapUserDetails
public LdapUserDetails(String username, LdapEntry entry, Collection<? extends GrantedAuthority> authorities)
-
-
Method Details
-
getDn
-
getEntry
The user's directory entry, with the attributes the authenticator read. -
getAuthorities
Description copied from interface:UserDetailsWhat the user has been granted; never null.- Specified by:
getAuthoritiesin interfaceUserDetails
-
getPassword
Description copied from interface:UserDetailsThe password as it is stored: encoded, with the{id}prefix a delegating encoder reads.- Specified by:
getPasswordin interfaceUserDetails
-
getUsername
- Specified by:
getUsernamein interfaceUserDetails
-