Package io.jmix.ldap.userdetails
Class UserDetailsServiceLdapUserDetailsMapper
java.lang.Object
io.jmix.ldap.userdetails.UserDetailsServiceLdapUserDetailsMapper
- All Implemented Interfaces:
org.springframework.security.ldap.userdetails.UserDetailsContextMapper
public class UserDetailsServiceLdapUserDetailsMapper
extends Object
implements org.springframework.security.ldap.userdetails.UserDetailsContextMapper
Maps LDAP user to user details obtained from
UserDetailsService
.-
Field Summary
Modifier and TypeFieldDescriptionprotected LdapProperties
protected LdapUserDetailsSynchronizationStrategy
protected org.springframework.security.core.userdetails.UserDetailsService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
mapUserFromContext
(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) void
mapUserToContext
(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx) void
setLdapProperties
(LdapProperties ldapProperties) void
setSynchronizationStrategy
(LdapUserDetailsSynchronizationStrategy synchronizationStrategy) void
setUserDetailsService
(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
-
Field Details
-
userDetailsService
protected org.springframework.security.core.userdetails.UserDetailsService userDetailsService -
synchronizationStrategy
-
ldapProperties
-
-
Constructor Details
-
UserDetailsServiceLdapUserDetailsMapper
public UserDetailsServiceLdapUserDetailsMapper()
-
-
Method Details
-
setUserDetailsService
@Autowired public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) -
setSynchronizationStrategy
@Autowired(required=false) public void setSynchronizationStrategy(LdapUserDetailsSynchronizationStrategy synchronizationStrategy) -
setLdapProperties
-
mapUserFromContext
public org.springframework.security.core.userdetails.UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) - Specified by:
mapUserFromContext
in interfaceorg.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
mapUserToContext
public void mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx) - Specified by:
mapUserToContext
in interfaceorg.springframework.security.ldap.userdetails.UserDetailsContextMapper
-